Create a new invitations table

master
Daniel Berteaud 11 years ago
parent 49dace5cf4
commit eb5acf9910
  1. 10
      docs/schema.mysql
  2. 9
      docs/upgrade.mysql

@ -31,6 +31,16 @@ CREATE TABLE `notifications` (
`email` varchar(254),
PRIMARY KEY (`id`,`email`)
);
DROP TABLE IF EXISTS `invitations`;
CREATE TABLE `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`)
);
#DROP TABLE IF EXISTS `turnusers_lt`;
#CREATE TABLE `turnusers_lt` (
# name varchar(512) PRIMARY KEY,

@ -7,3 +7,12 @@ CREATE TABLE IF NOT EXISTS `notifications` (
`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`)
);

Loading…
Cancel
Save