芝麻web文件管理V1.00
编辑当前文件:/home/mgatv524/public_html/migrations/20200130165443_countdown_module_add_migration.php
. */ use Phinx\Migration\AbstractMigration; /** * Class CountdownModuleAddMigration */ class CountdownModuleAddMigration extends AbstractMigration { /** @inheritDoc */ public function change() { if (!$this->fetchRow('SELECT * FROM module WHERE module = \'countdown\'')) { $modules = $this->table('module'); $modules->insert([ 'module' => 'countdown', 'name' => 'Countdown', 'enabled' => 1, 'regionSpecific' => 1, 'description' => 'Countdown Module', 'schemaVersion' => 1, 'previewEnabled' => 1, 'assignable' => 1, 'render_as' => 'html', 'viewPath' => '../modules', 'class' => 'Xibo\Widget\Countdown', 'defaultDuration' => 60, 'installName' => 'countdown' ])->save(); } } }