diff --git a/migrations/215-user-notifications-round-2.sql b/migrations/215-user-notifications-round-2.sql new file mode 100644 index 0000000000..6c4fc404cf --- /dev/null +++ b/migrations/215-user-notifications-round-2.sql @@ -0,0 +1,12 @@ +DROP TABLE IF EXISTS `users_notifications`; +CREATE TABLE `users_notifications` ( + `id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY, + `user_id` int(11) unsigned NOT NULL, + `notification_id` int(11) NOT NULL, + `created` datetime DEFAULT NULL, + `modified` datetime DEFAULT NULL, + `enabled` tinyint(1) DEFAULT NULL +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +ALTER TABLE `users_notifications` + ADD CONSTRAINT FOREIGN KEY (`user_id`) REFERENCES `users` (`id`);