Add 'if not exists' to system table creation. Just in case some previous db update routine was aborted or failed

pull/66/head^2
Thomas Bruederli 11 years ago
parent 589083a94c
commit bcfdac6660

@ -1,6 +1,6 @@
-- Upgrade from 0.9-beta
CREATE TABLE `system` (
CREATE TABLE IF NOT EXISTS `system` (
`name` varchar(64) NOT NULL,
`value` mediumtext,
PRIMARY KEY(`name`)

@ -1,6 +1,6 @@
-- Updates from version 0.9-beta
CREATE TABLE system (
CREATE TABLE IF NOT EXISTS system (
name varchar(64) NOT NULL PRIMARY KEY,
value text NOT NULL
);

Loading…
Cancel
Save