This commit is contained in:
th committed 2026-04-06 20:27:19 +02:00
1 parent e85b5203cd
commit 0d4d369870
19 files changed
+2258 -1814

No files matched your search

+7
View File
@@ -68,5 +68,12 @@ class Database
if (!in_array('parent_id', $colNames)) {
self::$pdo->exec('ALTER TABLE cards ADD COLUMN parent_id INTEGER DEFAULT NULL REFERENCES cards(id) ON DELETE SET NULL');
}
// Bucket color migration
$bcols = self::$pdo->query('PRAGMA table_info(buckets)')->fetchAll();
$bcolNames = array_column($bcols, 'name');
if (!in_array('color', $bcolNames)) {
self::$pdo->exec("ALTER TABLE buckets ADD COLUMN color TEXT NOT NULL DEFAULT '#64748b'");
}
}
}