blob: 5995b242814c1c79a5de1c70af0c8f66af9af737 (
plain)
1
2
3
4
5
6
7
|
--
-- patch-image-img_description_id.sql
--
-- T188132. Add `img_description_id` to the `image` table.
ALTER TABLE &mw_prefix.image ADD ( img_description_id NUMBER DEFAULT 0 NOT NULL );
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;
|