From 1e612c5a943194de38b93cb9c7c35b384c722193 Mon Sep 17 00:00:00 2001 From: Sebastian Grewe Date: Wed, 1 Jan 2014 10:32:11 +0100 Subject: [PATCH] [ADDED] Updated base structure --- sql/000_base_structure.sql | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/sql/000_base_structure.sql b/sql/000_base_structure.sql index 6c8acc1a..502d22b2 100644 --- a/sql/000_base_structure.sql +++ b/sql/000_base_structure.sql @@ -189,14 +189,15 @@ CREATE TABLE IF NOT EXISTS `tokens` ( CREATE TABLE IF NOT EXISTS `token_types` ( `id` tinyint(4) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(25) NOT NULL, + `expiration` INT NULL DEFAULT '0', PRIMARY KEY (`id`), UNIQUE KEY `name` (`name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; -INSERT INTO `token_types` (`id`, `name`) VALUES -(1, 'password_reset'), -(2, 'confirm_email'), -(3, 'invitation'); +INSERT INTO `token_types` (`id`, `name`, `expiration`) VALUES +(1, 'password_reset', 3600), +(2, 'confirm_email', 0), +(3, 'invitation', 0); CREATE TABLE IF NOT EXISTS `transactions` ( `id` int(255) NOT NULL AUTO_INCREMENT,