]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Merge pull request #382 from aaa2000/table_tags_entries_already_exists
authorNicolas Lœuillet <nicolas.loeuillet@gmail.com>
Sun, 5 Jan 2014 18:39:44 +0000 (10:39 -0800)
committerNicolas Lœuillet <nicolas.loeuillet@gmail.com>
Sun, 5 Jan 2014 18:39:44 +0000 (10:39 -0800)
Create sqlite table tags_entries only if not already exists

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,