mirror of
https://github.com/ellite/Wallos.git
synced 2026-05-24 00:34:42 -04:00
fix: don't use mbstring feat: sort graphs on the statistics page by usage feat: lifetime subscriptions feat: allow multiple filters on the settings page feat: filter by notification status fix: migrations using double quotes feat: rework icons fix: open 3 dot menu abone for the subscriptions at the bottom fix: ntfy notifications with strange chars
11 lines
420 B
PHP
11 lines
420 B
PHP
<?php
|
|
// This migration adds a "language" column to the user table and sets all values to english.
|
|
|
|
$columnQuery = $db->query("SELECT * FROM pragma_table_info('user') where name='language'");
|
|
$columnRequired = $columnQuery->fetchArray(SQLITE3_ASSOC) === false;
|
|
|
|
if ($columnRequired) {
|
|
$db->exec("ALTER TABLE user ADD COLUMN language TEXT DEFAULT 'en'");
|
|
$db->exec("UPDATE user SET language = 'en'");
|
|
}
|