芝麻web文件管理V1.00
编辑当前文件:/home/mgatv524/public_html/fmd/db/migrations/20190509102648_create_saved_report_table_migration.php
. */ use Phinx\Migration\AbstractMigration; /** * Class CreateSavedReportTableMigration */ class CreateSavedReportTableMigration extends AbstractMigration { /** @inheritdoc */ public function change() { $table = $this->table('saved_report', ['id' => 'savedReportId']); $table->addColumn('saveAs', 'string') ->addColumn('reportName', 'string') ->addColumn('mediaId', 'integer') ->addColumn('reportScheduleId', 'integer') ->addColumn('generatedOn', 'integer') ->addColumn('userId', 'integer') ->addForeignKey('userId', 'user', 'userId') ->addForeignKey('mediaId', 'media', 'mediaId') ->addForeignKey('reportScheduleId', 'reportschedule', 'reportScheduleId') ->save(); } }