Add settings table to database

feature/node-rewrite
Sven Slootweg 12 years ago
parent a397ecafe2
commit 51f93782ae

@ -0,0 +1,8 @@
CREATE TABLE IF NOT EXISTS `settings` (
`Id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`Key` varchar(120) NOT NULL,
`Value` text NOT NULL,
`LastChanged` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`Id`),
UNIQUE KEY `Key` (`Key`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

@ -78,3 +78,12 @@ CREATE TABLE IF NOT EXISTS `users` (
`AccessLevel` tinyint(4) NOT NULL, `AccessLevel` tinyint(4) NOT NULL,
PRIMARY KEY (`Id`) PRIMARY KEY (`Id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8; ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS `settings` (
`Id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,
`Key` varchar(120) NOT NULL,
`Value` text NOT NULL,
`LastChanged` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`Id`),
UNIQUE KEY `Key` (`Key`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

Loading…
Cancel
Save