Files
omnivore/packages/db/migrations/0054.undo.add_id_to_newsletter_email.sql
2022-02-11 09:24:33 -08:00

14 lines
287 B
PL/PgSQL
Executable File

-- Type: UNDO
-- Name: add_id_to_newsletter_email
-- Description: Add id field to newsletter_email table
BEGIN;
ALTER TABLE omnivore.newsletter_emails
DROP COLUMN id;
ALTER TABLE omnivore.newsletter_emails
ADD CONSTRAINT newsletter_emails_pkey PRIMARY KEY (address);
COMMIT;