From: adev Date: Sun, 5 Jan 2014 14:03:05 +0000 (+0100) Subject: Create sqlite table tags_entries only if not already exists X-Git-Tag: 1.3.1^2~4^2 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=a562e3905ac67983b85853e5ace813b2de0e3807;p=github%2Fwallabag%2Fwallabag.git Create sqlite table tags_entries only if not already exists --- diff --git a/inc/poche/Database.class.php b/inc/poche/Database.class.php index d8b63859..04731821 100644 --- a/inc/poche/Database.class.php +++ b/inc/poche/Database.class.php @@ -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,