]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Create sqlite table tags_entries only if not already exists 382/head
authoradev <adev2000@gmail.com>
Sun, 5 Jan 2014 14:03:05 +0000 (15:03 +0100)
committeradev <adev2000@gmail.com>
Sun, 5 Jan 2014 14:03:05 +0000 (15:03 +0100)
inc/poche/Database.class.php

index d8b6385988265a2238c79f427a2b93ccbf715044..04731821fb3311a6cd0e6180bfe5d8bc4ec9ebdb 100644 (file)
@@ -81,7 +81,7 @@ class Database {
 
         if (STORAGE == 'sqlite') {
             $sql = '
-                CREATE TABLE tags_entries (
+                CREATE TABLE IF NOT EXISTS tags_entries (
                     id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL UNIQUE,
                     entry_id INTEGER,
                     tag_id INTEGER,