[db] Fix migration fail
This commit is contained in:
@ -1,3 +1,3 @@
|
||||
ALTER TABLE message ADD COLUMN timestamp INTEGER AS (data ->> '$.time') STORED;
|
||||
ALTER TABLE message ADD COLUMN IF NOT EXISTS timestamp INTEGER AS (data ->> '$.time') STORED;
|
||||
|
||||
CREATE INDEX IF NOT EXISTS message_server_topic_timestamp ON message (server, topic, timestamp);
|
||||
|
||||
@ -1 +1 @@
|
||||
ALTER TABLE subscription ADD COLUMN retention_hours INTEGER DEFAULT 0;
|
||||
ALTER TABLE subscription ADD COLUMN IF NOT EXISTS retention_hours INTEGER DEFAULT 0;
|
||||
|
||||
Reference in New Issue
Block a user