Permalink
Browse files

Add 'if not exists' to system table creation. Just in case some previ…

…ous db update routine was aborted or failed
  • Loading branch information...
1 parent 589083a commit bcfdac6660b2c3d1527d1e993f63f345992d0afa @thomascube thomascube committed Mar 28, 2013
Showing with 2 additions and 2 deletions.
  1. +1 −1 SQL/mysql/2013011000.sql
  2. +1 −1 SQL/sqlite/2013011000.sql
View
@@ -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
);

0 comments on commit bcfdac6

Please sign in to comment.