Add a notifications table

master
Daniel Berteaud 11 years ago
parent e5dcbbce0b
commit 23e4c677e8
  1. 6
      docs/schema.mysql
  2. 5
      docs/upgrade.mysql

@ -24,6 +24,12 @@ CREATE TABLE `participants` (
`role` varchar(20) DEFAULT 'participant', `role` varchar(20) DEFAULT 'participant',
PRIMARY KEY (`id`,`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`; #DROP TABLE IF EXISTS `turnusers_lt`;
#CREATE TABLE `turnusers_lt` ( #CREATE TABLE `turnusers_lt` (
# name varchar(512) PRIMARY KEY, # name varchar(512) PRIMARY KEY,

@ -1,3 +1,8 @@
ALTER TABLE `rooms` ADD COLUMN `owner_password` varchar(160) DEFAULT NULL AFTER `join_password`; 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 `peer_id` varchar(40) DEFAULT NULL AFTER `participant`;
ALTER TABLE `participants` ADD COLUMN `role` varchar(20) DEFAULT 'participant' AFTER `peer_id`; 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`)
);

Loading…
Cancel
Save