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); }