Merge "maintenance: Document secondary purpose of --server"
[lhc/web/wiklou.git] / maintenance / oracle / archives / patch-image-img_description_id.sql
1 --
2 -- patch-image-img_description_id.sql
3 --
4 -- T188132. Add `img_description_id` to the `image` table.
5
6 ALTER TABLE &mw_prefix.image ADD ( img_description_id NUMBER DEFAULT 0 NOT NULL );
7 ALTER TABLE &mw_prefix.image ADD CONSTRAINT &mw_prefix.oldimage_fk2 FOREIGN KEY (img_description_id) REFERENCES &mw_prefix."COMMENT"(comment_id) ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED;