forked from laysense/laysense.cn
Expand page templates and configure page visibility
This commit is contained in:
@@ -58,6 +58,9 @@ final class Database
|
||||
if (!in_array('theme', $pageColumns, true)) {
|
||||
$pdo->exec("ALTER TABLE pages ADD COLUMN theme TEXT NOT NULL DEFAULT ''");
|
||||
}
|
||||
if (!in_array('visibility', $pageColumns, true)) {
|
||||
$pdo->exec("ALTER TABLE pages ADD COLUMN visibility TEXT NOT NULL DEFAULT '{}'");
|
||||
}
|
||||
$site = $pdo->prepare('INSERT OR IGNORE INTO site_settings (id, payload) VALUES (1, ?)');
|
||||
$site->execute([self::json($seed['site'])]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user