Added option to set From email on smtp settings
This commit is contained in:
@@ -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);');
|
||||
}
|
||||
Reference in New Issue
Block a user