mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
add import_item_state column to integrations table
This commit is contained in:
parent
761d0574a9
commit
9be25fa418
2 changed files with 27 additions and 0 deletions
16
packages/db/migrations/0144.do.add_import_item_state_to_integration.sql
Executable file
16
packages/db/migrations/0144.do.add_import_item_state_to_integration.sql
Executable 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;
|
||||
11
packages/db/migrations/0144.undo.add_import_item_state_to_integration.sql
Executable file
11
packages/db/migrations/0144.undo.add_import_item_state_to_integration.sql
Executable 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;
|
||||
Loading…
Reference in a new issue