芝麻web文件管理V1.00
编辑当前文件:/home/mgatv524/public_html/migrations/20190802145636_create_schedule_reminder_table_migration.php
. */ use Phinx\Migration\AbstractMigration; /** * Class CreateScheduleReminderTableMigration */ class CreateScheduleReminderTableMigration extends AbstractMigration { /** @inheritdoc */ public function change() { // Create table $table = $this->table('schedulereminder', ['id' => 'scheduleReminderId']); $table ->addColumn('eventId', 'integer') ->addColumn('value', 'integer') ->addColumn('type', 'integer') ->addColumn('option', 'integer') ->addColumn('reminderDt', 'integer') ->addColumn('lastReminderDt', 'integer') ->addColumn('isEmail', 'integer', ['limit' => \Phinx\Db\Adapter\MysqlAdapter::INT_TINY]) ->addForeignKey('eventId', 'schedule', 'eventId') ->save(); } }