Skip to content

Commit

Permalink
schmema/mysql/1.1.2: Fix timestamp is not UNIX time
Browse files Browse the repository at this point in the history
We previously incorrectly used `CURRENT_TIMESTAMP()` instead of
`UNIX_TIMESTAMP()` so the timestamps need to be corrected.
  • Loading branch information
lippserd committed Mar 18, 2024
1 parent dd75a5e commit 75b638c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions schema/mysql/upgrades/1.1.2.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
UPDATE icingadb_schema SET timestamp = UNIX_TIMESTAMP(timestamp / 1000) * 1000;

0 comments on commit 75b638c

Please sign in to comment.