This page describes SQL commands which provide further functionality.
SELECT * FROM user
INSERT INTO `webims_db`.`warehouse` (`name`) VALUES ('Storeroom');
INSERT INTO `webims_db`.`warehouse_category` (`warehouseId`, `name`, `importName`) VALUES ('1', 'General', 'generic');
View change log for the following objects:
- project
- project_item
- registry
- report
- inventory
select log.id, log.object, log.propertiesBefore, log.propertiesAfter, log.time, user.username,
CASE WHEN (log.propertiesBefore IS NOT NULL) and (log.propertiesAfter IS NOT NULL) THEN 'UPDATE'
WHEN (log.propertiesBefore IS NULL) and (log.propertiesAfter IS NOT NULL) THEN 'CREATE'
WHEN (log.propertiesBefore IS NOT NULL) and (log.propertiesAfter IS NULL) THEN 'DELETE'
ELSE 'UNKNOWN'
END AS action
from log
JOIN user ON log.userId = user.id