-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Data tables should contain time stamps to track changes.
For instance to automatically add timestamp when changing information in AP_Rundata:
PRAGMA writable_schema = on;
UPDATE sqlite_master
SET sql = replace(sql, 'DEFAULT 0',
'DEFAULT CURRENT_TIMESTAMP')
WHERE type = 'table'
AND name = 'AP_Rundata';
PRAGMA writable_schema = off;
CREATE TRIGGER UpdateLastTime UPDATE OF OB_runvalue, OB_legacyvalue ON AP_Rundata
BEGIN
UPDATE AP_Rundata SET TimeStamp=CURRENT_TIMESTAMP WHERE OB_item=NEW.OB_item;
END;
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels