芝麻web文件管理V1.00
编辑当前文件:/home/mgatv524/public_html/db/migrations/20190213162212_add_horizontal_menu_setting_migration.php
. */ use Phinx\Migration\AbstractMigration; /** * Class AddHorizontalMenuSettingMigration */ class AddHorizontalMenuSettingMigration extends AbstractMigration { /** @inheritdoc */ public function change() { // Add a setting allowing users enable event sync on applicable events if (!$this->fetchRow('SELECT * FROM `setting` WHERE setting = \'NAVIGATION_MENU_POSITION\'')) { $this->table('setting')->insert([ [ 'setting' => 'NAVIGATION_MENU_POSITION', 'value' => 'vertical', 'userSee' => 1, 'userChange' => 1 ] ])->save(); } } }