wiki.techinc.nl/maintenance/archives/patch-image-img_actor.sql
Reedy e22efbce17 Split down patch-actor-table.sql
Bug: T227662
Change-Id: I024ff1d6f4c2726242138ba7e7f19480d9d2b948
2019-09-30 15:20:08 +00:00

4 lines
227 B
SQL

ALTER TABLE /*_*/image
ALTER COLUMN img_user_text SET DEFAULT '',
ADD COLUMN img_actor bigint unsigned NOT NULL DEFAULT 0 AFTER img_user_text;
CREATE INDEX /*i*/img_actor_timestamp ON /*_*/image (img_actor, img_timestamp);