diff --git a/docs/schema.mysql b/docs/schema.mysql index a73fcb5..2d8710c 100644 --- a/docs/schema.mysql +++ b/docs/schema.mysql @@ -24,6 +24,12 @@ CREATE TABLE `participants` ( `role` varchar(20) DEFAULT 'participant', PRIMARY KEY (`id`,`participant`) ); +DROP TABLE IF EXISTS `notifications`; +CREATE TABLE `notifications` ( + `id` int(11) NOT NULL, + `email` varchar(254), + PRIMARY KEY (`id`,`email`) +); #DROP TABLE IF EXISTS `turnusers_lt`; #CREATE TABLE `turnusers_lt` ( # name varchar(512) PRIMARY KEY, diff --git a/docs/upgrade.mysql b/docs/upgrade.mysql index 8dbed04..977c200 100644 --- a/docs/upgrade.mysql +++ b/docs/upgrade.mysql @@ -1,3 +1,8 @@ ALTER TABLE `rooms` ADD COLUMN `owner_password` varchar(160) DEFAULT NULL AFTER `join_password`; ALTER TABLE `participants` ADD COLUMN `peer_id` varchar(40) DEFAULT NULL AFTER `participant`; ALTER TABLE `participants` ADD COLUMN `role` varchar(20) DEFAULT 'participant' AFTER `peer_id`; +CREATE TABLE IF NOT EXISTS `notifications` ( + `id` int(11) NOT NULL, + `email` varchar(254), + PRIMARY KEY (`id`,`email`) +);