1
0
mirror of https://github.com/moparisthebest/wallabag synced 2024-11-27 19:32:18 -05:00

Merge pull request #382 from aaa2000/table_tags_entries_already_exists

Create sqlite table tags_entries only if not already exists
This commit is contained in:
Nicolas Lœuillet 2014-01-05 10:39:44 -08:00
commit 9c9b226589

View File

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