Add a new ask_for_name field in the DB

This commit is contained in:
Daniel Berteaud 2014-05-21 13:51:03 +02:00
parent a94fe314e4
commit 25a3dfd2c2
2 changed files with 2 additions and 0 deletions

View File

@ -6,6 +6,7 @@ CREATE TABLE `rooms` (
`create_timestamp` int(20) DEFAULT NULL,
`activity_timestamp` int(20) DEFAULT NULL,
`locked` tinyint(1) DEFAULT '0',
`ask_for_name` tinyint(1) DEFAULT '0',
`join_password` varchar(160) DEFAULT NULL,
`owner_password` varchar(160) DEFAULT NULL,
`token` varchar(160) DEFAULT NULL,

View File

@ -1,4 +1,5 @@
ALTER TABLE `rooms` ADD COLUMN `owner_password` varchar(160) DEFAULT NULL AFTER `join_password`;
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`;
CREATE TABLE IF NOT EXISTS `notifications` (