wiki.techinc.nl/maintenance/archives/patch-drop-ar_text.sql
Brad Jorsch 21c6ae1163 Drop archive.ar_text and ar_flags
This should have been done long ago. Now it is being done.

This also changes ar_text_id to NOT NULL, since it should never be null
anymore, and DEFAULT 0 in preparation for MCR stopping writing it.

Bug: T33223
Change-Id: I18f1c740b7537c7dc3cfeba9b241d0a9f31caa34
2018-04-03 12:54:27 -04:00

7 lines
252 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,
CHANGE COLUMN ar_text_id ar_text_id int unsigned NOT NULL DEFAULT 0;