database/backfill_state: change type of first_expected_ts to BIGINT

This commit is contained in:
Sumner Evans 2022-05-24 09:50:38 -06:00
parent 91bab528f3
commit a0ffed43dd
No known key found for this signature in database
GPG key ID: 8904527AB50022FD

View 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;