[ADDED] Updated base structure

This commit is contained in:
Sebastian Grewe 2014-01-01 10:32:11 +01:00
parent 0b5e6ae250
commit 1e612c5a94

View File

@ -189,14 +189,15 @@ CREATE TABLE IF NOT EXISTS `tokens` (
CREATE TABLE IF NOT EXISTS `token_types` ( CREATE TABLE IF NOT EXISTS `token_types` (
`id` tinyint(4) unsigned NOT NULL AUTO_INCREMENT, `id` tinyint(4) unsigned NOT NULL AUTO_INCREMENT,
`name` varchar(25) NOT NULL, `name` varchar(25) NOT NULL,
`expiration` INT NULL DEFAULT '0',
PRIMARY KEY (`id`), PRIMARY KEY (`id`),
UNIQUE KEY `name` (`name`) UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8; ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
INSERT INTO `token_types` (`id`, `name`) VALUES INSERT INTO `token_types` (`id`, `name`, `expiration`) VALUES
(1, 'password_reset'), (1, 'password_reset', 3600),
(2, 'confirm_email'), (2, 'confirm_email', 0),
(3, 'invitation'); (3, 'invitation', 0);
CREATE TABLE IF NOT EXISTS `transactions` ( CREATE TABLE IF NOT EXISTS `transactions` (
`id` int(255) NOT NULL AUTO_INCREMENT, `id` int(255) NOT NULL AUTO_INCREMENT,