Files
Wallos/migrations/000028.php
Miguel Ribeiro 1dbba18446 feat: add mobile menu navigation to experimental settings
feat: use browsers locale to set dates on the dashboard
2024-09-29 23:46:30 +02:00

11 lines
408 B
PHP

<?php
// This migration adds a "mobile_nav" column to the settings table
/** @noinspection PhpUndefinedVariableInspection */
$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');
}