bak
This commit is contained in:
1 parent
e85b5203cd
commit
0d4d369870
19 files changed
+2258
-1814
No files matched your search
@@ -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'");
|
||||
}
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -7,6 +7,6 @@ require_once __DIR__ . '/Database.php';
|
||||
$dataDir = dirname(DB_PATH);
|
||||
if (!is_writable($dataDir) && is_dir($dataDir)) {
|
||||
http_response_code(500);
|
||||
echo 'Data directory is not writable: ' . $dataDir;
|
||||
echo 'Data directory is not writable';
|
||||
exit(1);
|
||||
}
|
||||
Reference in new issue
Block a user