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())