From 95718130c8764013124adc495f3fb4de848e2625 Mon Sep 17 00:00:00 2001 From: Evgeny Zinoviev Date: Sat, 9 Jul 2022 20:35:56 +0300 Subject: database/sqlite: remove copy-pasta from homekit --- engine/database/SQLiteConnection.php | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) (limited to 'engine/database/SQLiteConnection.php') diff --git a/engine/database/SQLiteConnection.php b/engine/database/SQLiteConnection.php index f124ced..6b03c7c 100644 --- a/engine/database/SQLiteConnection.php +++ b/engine/database/SQLiteConnection.php @@ -2,7 +2,7 @@ class SQLiteConnection extends CommonDatabase { - const SCHEMA_VERSION = 2; + const SCHEMA_VERSION = 0; protected SQLite3 $link; @@ -21,18 +21,9 @@ class SQLiteConnection extends CommonDatabase { return; if ($cur < 1) { - $this->link->exec("CREATE TABLE users ( - id INTEGER PRIMARY KEY AUTOINCREMENT, - username TEXT, - password TEXT - )"); - } - if ($cur < 2) { - $this->link->exec("CREATE TABLE vk_processed ( - last_message_time INTEGER - )"); - $this->link->exec("INSERT INTO vk_processed (last_message_time) VALUES (0)"); + // TODO } + $this->syncSchemaVersion(); } -- cgit v1.2.3