Skip to content

Commit 85e53e0

Browse files
committed
fix audit logs default
1 parent 10879ce commit 85e53e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

db/migrations/1734708157_update_entity_id_for_audit_logs.up.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ CREATE TABLE _audit_logs (
44
event_type_id TINYINT NOT NULL REFERENCES event_types (id),
55
entity_type_id TINYINT NOT NULL REFERENCES entity_types (id),
66
entity_id INTEGER NOT NULL,
7-
created_at INTEGER NOT NULL DEFAULT (strftime('%s', 'now'))
7+
created_at INTEGER NOT NULL DEFAULT (unixepoch())
88
);
99

1010
-- copy data from the old table to the new

0 commit comments

Comments
 (0)