芝麻web文件管理V1.00
编辑当前文件:/home/mgatv524/public_html/fmd/db/migrations/20180213173846_mail_from_name_setting_migration.php
. */ use Phinx\Migration\AbstractMigration; class MailFromNameSettingMigration extends AbstractMigration { /** @inheritdoc */ public function up() { // Check to see if the mail_from_name setting exists if (!$this->fetchRow('SELECT * FROM `setting` WHERE setting = \'mail_from_name\'')) { $this->execute('INSERT INTO setting (setting, value, fieldType, helptext, options, cat, userChange, title, validation, ordering, `default`, userSee, type) VALUES (\'mail_from_name\', \'\', \'text\', \'Mail will be sent under this name\', NULL, \'maintenance\', 1, \'Sending email name\', \'\', 45, \'\', 1, \'string\');'); } } }