From ebe92335a69b2593dd4279ce858b0083ea14ba18 Mon Sep 17 00:00:00 2001 From: Bernd Bestel Date: Tue, 25 Jul 2017 19:23:08 +0200 Subject: [PATCH] Fix SQLite PDO issue on unix systems --- Grocy.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Grocy.php b/Grocy.php index a28d2d6c..fed4f217 100644 --- a/Grocy.php +++ b/Grocy.php @@ -20,7 +20,7 @@ class Grocy if ($doMigrations === true) { - Grocy::ExecuteDbStatement($pdo, "CREATE TABLE IF NOT EXISTS migrations (migration INTEGER NOT NULL UNIQUE, execution_time_timestamp DATETIME DEFAULT (datetime('now', 'localtime')), PRIMARY KEY(migration)) WITHOUT ROWID"); + Grocy::ExecuteDbStatement($pdo, "CREATE TABLE IF NOT EXISTS migrations (migration INTEGER NOT NULL PRIMARY KEY UNIQUE, execution_time_timestamp DATETIME DEFAULT (datetime('now', 'localtime')))"); GrocyDbMigrator::MigrateDb($pdo); if (self::IsDemoInstallation())