From 0467934a8265ffa8c990b104798c84da67ac07c9 Mon Sep 17 00:00:00 2001 From: Jephte Clain Date: Thu, 5 Jun 2025 14:16:51 +0400 Subject: [PATCH] bug --- php/src/db/CapacitorStorage.php | 2 +- php/src/db/sqlite/SqliteStorage.php | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/php/src/db/CapacitorStorage.php b/php/src/db/CapacitorStorage.php index a58349a..542673e 100644 --- a/php/src/db/CapacitorStorage.php +++ b/php/src/db/CapacitorStorage.php @@ -40,7 +40,7 @@ abstract class CapacitorStorage { const SERDATA_DEFINITION = "mediumtext"; const SERSUM_DEFINITION = "varchar(40)"; const SERTS_DEFINITION = "datetime"; - const GENSERIAL_DEFINITION = "integer primary key autoincrement"; + const GENSERIAL_DEFINITION = "integer primary key auto_increment"; const GENLIC_DEFINITION = "varchar(80)"; const GENLIB_DEFINITION = "varchar(255)"; const GENTEXT_DEFINITION = "mediumtext"; diff --git a/php/src/db/sqlite/SqliteStorage.php b/php/src/db/sqlite/SqliteStorage.php index 5b2aea8..d37b9d1 100644 --- a/php/src/db/sqlite/SqliteStorage.php +++ b/php/src/db/sqlite/SqliteStorage.php @@ -9,6 +9,8 @@ use nulib\db\CapacitorStorage; * Class SqliteStorage */ class SqliteStorage extends CapacitorStorage { + const GENSERIAL_DEFINITION = "integer primary key autoincrement"; + function __construct($sqlite) { $this->db = Sqlite::with($sqlite); }