Add an activity_timestamp column in participants table

master
Daniel Berteaud 11 years ago
parent ba80a3b429
commit c97c1f6866
  1. 1
      docs/schema.mysql
  2. 1
      docs/upgrade.mysql

@ -24,6 +24,7 @@ CREATE TABLE `participants` (
`participant` varchar(60) NOT NULL, `participant` varchar(60) NOT NULL,
`peer_id` varchar(40) DEFAULT NULL, `peer_id` varchar(40) DEFAULT NULL,
`role` varchar(20) DEFAULT 'participant', `role` varchar(20) DEFAULT 'participant',
`activity_timestamp` int(20) DEFAULT NULL,
PRIMARY KEY (`id`,`participant`) PRIMARY KEY (`id`,`participant`)
) DEFAULT CHARSET=utf8; ) DEFAULT CHARSET=utf8;
DROP TABLE IF EXISTS `notifications`; DROP TABLE IF EXISTS `notifications`;

@ -22,3 +22,4 @@ CREATE TABLE IF NOT EXISTS `invitations` (
PRIMARY KEY (`token`) PRIMARY KEY (`token`)
) DEFAULT CHARSET=utf8; ) DEFAULT CHARSET=utf8;
ALTER TABLE `rooms` ADD COLUMN `etherpad_group` varchar(40) DEFAULT NULL AFTER `owner_password`; 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`;

Loading…
Cancel
Save