mirror of
https://github.com/ellite/Wallos.git
synced 2026-04-17 21:50:11 -04:00
11 lines
408 B
PHP
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');
|
|
} |