mirror of
https://github.com/ellite/Wallos.git
synced 2026-05-24 08:44:58 -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
511 B
PHP
11 lines
511 B
PHP
<?php
|
|
// This migration adds a "encryption" column to the notifications table so that the encryption type can be stored.
|
|
|
|
$columnQuery = $db->query("SELECT * FROM pragma_table_info('notifications') WHERE name='encryption'");
|
|
$columnRequired = $columnQuery->fetchArray(SQLITE3_ASSOC) === false;
|
|
|
|
if ($columnRequired) {
|
|
$db->exec("ALTER TABLE notifications ADD COLUMN `encryption` TEXT DEFAULT 'tls'");
|
|
$db->exec("UPDATE notifications SET `encryption` = 'tls'");
|
|
}
|
|
?>
|