summaryrefslogtreecommitdiff
path: root/www/wiki/maintenance/oracle/archives/patch-image-img_description_id.sql
diff options
context:
space:
mode:
Diffstat (limited to 'www/wiki/maintenance/oracle/archives/patch-image-img_description_id.sql')
-rw-r--r--www/wiki/maintenance/oracle/archives/patch-image-img_description_id.sql7
1 files changed, 7 insertions, 0 deletions
diff --git a/www/wiki/maintenance/oracle/archives/patch-image-img_description_id.sql b/www/wiki/maintenance/oracle/archives/patch-image-img_description_id.sql
new file mode 100644
index 00000000..5995b242
--- /dev/null
+++ b/www/wiki/maintenance/oracle/archives/patch-image-img_description_id.sql
@@ -0,0 +1,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;