芝麻web文件管理V1.00
编辑当前文件:/home/mgatv524/public_html/mctv/db/migrations/20191126103120_geo_schedule_migration.php
. */ use Phinx\Migration\AbstractMigration; class GeoScheduleMigration extends AbstractMigration { /** @inheritdoc */ public function change() { $scheduleTable = $this->table('schedule'); // Add new columns to Schedule table - isGeoAware and geoLocation if (!$scheduleTable->hasColumn('isGeoAware')) { $scheduleTable ->addColumn('isGeoAware', 'integer', ['limit' => \Phinx\Db\Adapter\MysqlAdapter::INT_TINY, 'default' => 0]) ->addColumn('geoLocation', 'text', ['default' => null, 'null' => true]) ->save(); } } }