Files
Wallos/migrations/000028.php
2025-07-21 22:53:35 +02:00

10 lines
355 B
PHP

<?php
// This migration adds a "mobile_nav" column to the settings table
$columnQuery = $db->query("SELECT * FROM pragma_table_info('settings') where name='mobile_nav'");
$columnRequired = $columnQuery->fetchArray(SQLITE3_ASSOC) === false;
if ($columnRequired) {
$db->exec('ALTER TABLE settings ADD COLUMN mobile_nav BOOLEAN DEFAULT 0');
}