Added option to set From email on smtp settings

This commit is contained in:
ellite
2023-11-17 00:39:14 +01:00
parent c70859e1b0
commit 0b6246b09d
8 changed files with 35 additions and 8 deletions
+10
View File
@@ -0,0 +1,10 @@
<?php
// This migration adds a "from_email" column to the notifications table.
/** @noinspection PhpUndefinedVariableInspection */
$columnQuery = $db->query("SELECT * FROM pragma_table_info('notifications') where name='from_email'");
$columnRequired = $columnQuery->fetchArray(SQLITE3_ASSOC) === false;
if ($columnRequired) {
$db->exec('ALTER TABLE notifications ADD COLUMN from_email VARCHAR(255);');
}