1
0
mirror of https://github.com/dani/vroom.git synced 2024-06-30 15:23:41 +02:00
vroom/docs/upgrade.mysql

26 lines
1.2 KiB
Plaintext
Raw Normal View History

ALTER TABLE `rooms` ADD COLUMN `owner_password` varchar(160) DEFAULT NULL AFTER `join_password`;
2014-05-21 13:51:03 +02:00
ALTER TABLE `rooms` ADD COLUMN `ask_for_name` tinyint(1) DEFAULT NULL AFTER `locked`;
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 `rooms` DEFAULT CHARACTER SET utf8;
ALTER TABLE `participants` DEFAULT CHARACTER SET utf8;
ALTER TABLE `notifications` DEFAULT CHARACTER SET utf8;
2014-05-19 17:12:57 +02:00
CREATE TABLE IF NOT EXISTS `notifications` (
`id` int(11) NOT NULL,
`email` varchar(254),
PRIMARY KEY (`id`,`email`)
) DEFAULT CHARSET=utf8;
2014-05-27 18:41:32 +02:00
CREATE TABLE IF NOT EXISTS `invitations` (
`id` int(11) NOT NULL,
`email` varchar(254) NOT NULL,
`token` varchar(160) NOT NULL,
`from` varchar(60) NOT NULL,
`response` varchar(20) DEFAULT NULL,
`message` text DEFAULT NULL,
2014-05-27 18:41:32 +02:00
`processed` tinyint(1) DEFAULT '0',
`timestamp` int(20) DEFAULT NULL,
PRIMARY KEY (`token`)
) DEFAULT CHARSET=utf8;
2014-06-12 22:10:04 +02:00
ALTER TABLE `rooms` ADD COLUMN `etherpad_group` varchar(40) DEFAULT NULL AFTER `owner_password`;
ALTER TABLE `participants` ADD COLUMN `activity_timestamp` int(20) DEFAULT NULL AFTER `role`;