From a562e3905ac67983b85853e5ace813b2de0e3807 Mon Sep 17 00:00:00 2001 From: adev Date: Sun, 5 Jan 2014 15:03:05 +0100 Subject: [PATCH] Create sqlite table tags_entries only if not already exists --- inc/poche/Database.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- 2.41.0