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

14 lines
309 B
PL/PgSQL
Executable File

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