芝麻web文件管理V1.00
编辑当前文件:/home/mgatv524/public_html/db/migrations/20190509101525_create_report_schedule_table_migration.php
. */ use Phinx\Migration\AbstractMigration; /** * Class CreateReportScheduleTableMigration */ class CreateReportScheduleTableMigration extends AbstractMigration { /** @inheritdoc */ public function change() { $table = $this->table('reportschedule', ['id' => 'reportScheduleId']); $table->addColumn('name', 'string') ->addColumn('reportName', 'string') ->addColumn('filterCriteria', 'text') ->addColumn('schedule', 'string') ->addColumn('lastRunDt', 'integer', ['default' => 0]) ->addColumn('userId', 'integer') ->addColumn('createdDt', 'integer') ->addForeignKey('userId', 'user', 'userId') ->save(); } }