Add a new ask_for_name field in the DB

master
Daniel Berteaud 11 years ago
parent a94fe314e4
commit 25a3dfd2c2
  1. 1
      docs/schema.mysql
  2. 1
      docs/upgrade.mysql

@ -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,

@ -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` (

Loading…
Cancel
Save