add import_item_state column to integrations table

This commit is contained in:
Hongbo Wu 2023-10-30 15:07:52 +08:00
parent 761d0574a9
commit 9be25fa418
2 changed files with 27 additions and 0 deletions

View file

@ -0,0 +1,16 @@
-- Type: DO
-- Name: add_import_item_state_to_integration
-- Description: Add import_item_state column to integration table
BEGIN;
CREATE type import_item_state_type AS ENUM (
'UNREAD',
'UNARCHIVED',
'ARCHIVED',
'ALL'
);
ALTER TABLE omnivore.integrations ADD COLUMN import_item_state import_item_state_type;
COMMIT;

View file

@ -0,0 +1,11 @@
-- Type: UNDO
-- Name: add_import_item_state_to_integration
-- Description: Add import_item_state column to integration table
BEGIN;
ALTER TABLE omnivore.integrations DROP COLUMN IF EXISTS import_item_state;
DROP TYPE IF EXISTS import_item_state_type;
COMMIT;