17 lines
542 B
PHP
17 lines
542 B
PHP
<?php
|
|
require_once 'config.php';
|
|
try {
|
|
$db->exec("CREATE TABLE IF NOT EXISTS system_settings (
|
|
key_name TEXT PRIMARY KEY,
|
|
value TEXT
|
|
)");
|
|
|
|
// 기본값 설정 (이미 있으면 무시)
|
|
$stmt = $db->prepare("INSERT OR IGNORE INTO system_settings (key_name, value) VALUES (?, ?)");
|
|
$stmt->execute(['menu_cards_visible', '1']);
|
|
$stmt->execute(['menu_mfp_visible', '1']);
|
|
|
|
echo "✅ system_settings table created and initialized.";
|
|
} catch (Exception $e) {
|
|
echo "❌ Error: " . $e->getMessage();
|
|
}
|