mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Merge pull request #3220 from omnivore-app/fix/migration
remove updating folder sql from migration script which caused locks
This commit is contained in:
commit
a068b16cb1
3 changed files with 0 additions and 22 deletions
|
|
@ -14,9 +14,6 @@ ALTER TABLE omnivore.library_item
|
|||
ADD COLUMN preview_content_type text,
|
||||
ADD COLUMN folder text NOT NULL DEFAULT 'inbox';
|
||||
|
||||
UPDATE omnivore.library_item SET folder = 'archive' WHERE archived_at IS NOT NULL;
|
||||
UPDATE omnivore.library_item SET folder = 'trash' WHERE deleted_at IS NOT NULL;
|
||||
|
||||
CREATE POLICY library_item_admin_policy on omnivore.library_item
|
||||
FOR ALL
|
||||
TO omnivore_admin
|
||||
|
|
|
|||
|
|
@ -1,9 +0,0 @@
|
|||
-- Type: DO
|
||||
-- Name: update_folder_in_library_item
|
||||
-- Description: Update folder column in library_item table
|
||||
|
||||
BEGIN;
|
||||
|
||||
UPDATE omnivore.library_item SET folder = 'inbox' WHERE folder = 'archive' OR folder = 'trash';
|
||||
|
||||
COMMIT;
|
||||
|
|
@ -1,10 +0,0 @@
|
|||
-- Type: UNDO
|
||||
-- Name: update_folder_in_library_item
|
||||
-- Description: Update folder column in library_item table
|
||||
|
||||
BEGIN;
|
||||
|
||||
UPDATE omnivore.library_item SET folder = 'archive' WHERE archived_at IS NOT NULL;
|
||||
UPDATE omnivore.library_item SET folder = 'trash' WHERE deleted_at IS NOT NULL;
|
||||
|
||||
COMMIT;
|
||||
Loading…
Reference in a new issue