bak
This commit is contained in:
1 parent
5aa3abc860
commit
5f9db690a4
24 files changed
+1447
-597
No files matched your search
@@ -120,6 +120,19 @@ class Database
|
||||
)
|
||||
');
|
||||
|
||||
// Relay UID for bidirectional sync
|
||||
if (!in_array('relay_uid', $colNames)) {
|
||||
self::$pdo->exec('ALTER TABLE cards ADD COLUMN relay_uid TEXT DEFAULT NULL');
|
||||
}
|
||||
|
||||
// Relay pushed message IDs (skip on own poll)
|
||||
self::$pdo->exec('
|
||||
CREATE TABLE IF NOT EXISTS relay_pushed (
|
||||
relay_msg_id INTEGER PRIMARY KEY,
|
||||
created_at TEXT NOT NULL DEFAULT CURRENT_TIMESTAMP
|
||||
)
|
||||
');
|
||||
|
||||
// Bucket color migration
|
||||
$bcols = self::$pdo->query('PRAGMA table_info(buckets)')->fetchAll();
|
||||
$bcolNames = array_column($bcols, 'name');
|
||||
|
||||
Reference in new issue
Block a user