summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engine/database/SQLiteConnection.php15
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();
}