Files
omnivore/packages/db/migrations/0072.undo.add_elastic_page_id.sql
Jackson Harper 56c45fd1f6 Postgres migrations for the Elastic backend migration
These are cherry picked from the elastic branch so we can run them
and migrate data before moving to elastic as the primary page
backend.
2022-03-15 14:00:22 -07:00

16 lines
579 B
PL/PgSQL
Executable File

-- Type: UNDO
-- Name: add_elastic_page_id
-- Description: Add elastic_page_id to link/page related tables
BEGIN;
ALTER TABLE omnivore.article_saving_request DROP COLUMN elastic_page_id;
ALTER TABLE omnivore.reaction DROP COLUMN elastic_page_id;
ALTER TABLE omnivore.highlight DROP COLUMN elastic_page_id;
ALTER TABLE omnivore.reminders DROP COLUMN elastic_page_id;
ALTER TABLE omnivore.abuse_report DROP COLUMN elastic_page_id;
ALTER TABLE omnivore.content_display_report DROP COLUMN elastic_page_id;
ALTER TABLE omnivore.link_share_info DROP COLUMN elastic_page_id;
COMMIT;