wiki.techinc.nl/maintenance/postgres/archives/patch-drop-ar_text.sql
Brad Jorsch 7e685a395d Fix typo in postgres patch-drop-ar_text.sql
Change-Id: I6d479d123848325b8501275ef4b98fc81cd99505
2018-04-26 14:52:12 -04:00

8 lines
257 B
SQL

-- T33223: Remove obsolete ar_text and ar_flags columns
-- (and make ar_text_id not nullable and default 0)
ALTER TABLE archive
DROP COLUMN ar_text,
DROP COLUMN ar_flags,
ALTER COLUMN ar_text_id SET DEFAULT 0,
ALTER COLUMN ar_text_id SET NOT NULL;