diff options
author | Nicolas LÅ“uillet <nicolas.loeuillet@gmail.com> | 2014-01-05 10:39:44 -0800 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas.loeuillet@gmail.com> | 2014-01-05 10:39:44 -0800 |
commit | 9c9b22658979546ac3567f2be3e702d276e65106 (patch) | |
tree | 2fcd318ce8b21bf03d486244dba088839aa3e18b | |
parent | 2abcccb37180c17318f5226f5d4bc28f30b621ea (diff) | |
parent | a562e3905ac67983b85853e5ace813b2de0e3807 (diff) | |
download | wallabag-9c9b22658979546ac3567f2be3e702d276e65106.tar.gz wallabag-9c9b22658979546ac3567f2be3e702d276e65106.tar.zst wallabag-9c9b22658979546ac3567f2be3e702d276e65106.zip |
Merge pull request #382 from aaa2000/table_tags_entries_already_exists
Create sqlite table tags_entries only if not already exists
-rw-r--r-- | inc/poche/Database.class.php | 2 |
1 files changed, 1 insertions, 1 deletions
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 { | |||
81 | 81 | ||
82 | if (STORAGE == 'sqlite') { | 82 | if (STORAGE == 'sqlite') { |
83 | $sql = ' | 83 | $sql = ' |
84 | CREATE TABLE tags_entries ( | 84 | CREATE TABLE IF NOT EXISTS tags_entries ( |
85 | id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL UNIQUE, | 85 | id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL UNIQUE, |
86 | entry_id INTEGER, | 86 | entry_id INTEGER, |
87 | tag_id INTEGER, | 87 | tag_id INTEGER, |