diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2022-07-09 20:35:56 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2022-07-09 20:35:56 +0300 |
commit | 95718130c8764013124adc495f3fb4de848e2625 (patch) | |
tree | 1016f039199415a8173f892f676fc17479617876 /engine/database/SQLiteConnection.php | |
parent | 34b7980587df61ae084bddd4513a45f6218467cd (diff) |
database/sqlite: remove copy-pasta from homekit
Diffstat (limited to 'engine/database/SQLiteConnection.php')
-rw-r--r-- | engine/database/SQLiteConnection.php | 15 |
1 files changed, 3 insertions, 12 deletions
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(); } |