芝麻web文件管理V1.00
编辑当前文件:/home/mgatv524/public_html/db/migrations/20200122191232_add_commercial_licence_column_migration.php
. */ use Phinx\Migration\AbstractMigration; class AddCommercialLicenceColumnMigration extends AbstractMigration { /** @inheritdoc */ public function change() { $displayTable = $this->table('display'); // Add new column to Display table - commercialLicence. 0 - Not licensed, 1 - licensed, 2 - trial licence, 3 - not applicable if (!$displayTable->hasColumn('commercialLicence')) { $displayTable ->addColumn('commercialLicence', 'integer', ['limit' => \Phinx\Db\Adapter\MysqlAdapter::INT_TINY, 'default' => null, 'null' => true]) ->save(); } } }