Commit 33dab250 authored by Luke Ward's avatar Luke Ward
Browse files

Fixed duplicate flag issues

parent 5e5fd0a2
...@@ -77,7 +77,8 @@ CREATE TABLE IF NOT EXISTS `forum_flags` ( ...@@ -77,7 +77,8 @@ CREATE TABLE IF NOT EXISTS `forum_flags` (
`resolved` tinyint(1) DEFAULT '0', `resolved` tinyint(1) DEFAULT '0',
PRIMARY KEY (`flag_id`), PRIMARY KEY (`flag_id`),
KEY `forum_flags_users_FK` (`user_id`), KEY `forum_flags_users_FK` (`user_id`),
CONSTRAINT `forum_flags_users_FK` FOREIGN KEY (`user_id`) REFERENCES `users` (`user_id`) CONSTRAINT `forum_flags_users_FK` FOREIGN KEY (`user_id`) REFERENCES `users` (`user_id`),
CONSTRAINT f`orum_flags_UN` UNIQUE KEY (`post_id`, `user_id`, `type`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE = utf8mb4_unicode_ci; ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE = utf8mb4_unicode_ci;
-- --
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment