From 97eb52771440d4ff8eb6f6d9e6c3fc9f2ac63b31 Mon Sep 17 00:00:00 2001 From: Shish Date: Sat, 10 Mar 2012 19:38:50 +0000 Subject: [PATCH] named constraints --- ext/comment/main.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/comment/main.php b/ext/comment/main.php index 3d813f99..38218f55 100644 --- a/ext/comment/main.php +++ b/ext/comment/main.php @@ -83,8 +83,8 @@ class CommentList extends Extension { INDEX (image_id), INDEX (owner_ip), INDEX (posted), - FOREIGN KEY (image_id) REFERENCES images(id) ON DELETE CASCADE, - FOREIGN KEY (owner_id) REFERENCES users(id) ON DELETE RESTRICT + CONSTRAINT foreign_comments_image_id FOREIGN KEY (image_id) REFERENCES images(id) ON DELETE CASCADE, + CONSTRAINT foreign_comments_owner_id FOREIGN KEY (owner_id) REFERENCES users(id) ON DELETE RESTRICT "); $config->set_int("ext_comments_version", 3); }