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` ( `id` int(11) NOT NULL, `email` varchar(254), PRIMARY KEY (`id`,`email`) ); 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, `processed` tinyint(1) DEFAULT '0', PRIMARY KEY (`id`,`email`,`from`) );