influxdb/iox_catalog/migrations/20220915155941_nullable-par...

12 lines
302 B
SQL

-- Make persisted_sequence_number nullable.
--
-- NULL == no persisted data for this partition
ALTER TABLE
"partition" DROP COLUMN "persisted_sequence_number";
-- Remove implicit NULL / default of 0.
ALTER TABLE
"partition"
ADD
COLUMN "persisted_sequence_number" BIGINT NULL DEFAULT NULL;