mirror of
https://github.com/tulir/mautrix-whatsapp
synced 2024-12-13 17:13:11 +01:00
database/backfill_state: change type of first_expected_ts to BIGINT
This commit is contained in:
parent
91bab528f3
commit
a0ffed43dd
1 changed files with 7 additions and 0 deletions
7
database/upgrades/49-backfill-state-timestamp-bigint.sql
Normal file
7
database/upgrades/49-backfill-state-timestamp-bigint.sql
Normal file
|
@ -0,0 +1,7 @@
|
|||
-- v49: Convert first_expected_ts to BIGINT so that we can use zero-values.
|
||||
|
||||
-- only: sqlite
|
||||
UPDATE backfill_state SET first_expected_ts=unixepoch(first_expected_ts);
|
||||
|
||||
-- only: postgres
|
||||
ALTER TABLE backfill_state ALTER COLUMN first_expected_ts TYPE BIGINT;
|
Loading…
Reference in a new issue