1
public function up() {
$tableOptions = 'CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE=InnoDB';
$columns = [
'id' => $this->primaryKey(),
'name' => $this->string(255)->notNull(),
'price' => $this->decimal(10, 2)->notNull()->defaultValue(0),
'original_price' => $this->decimal(10, 2)->notNull()->defaultValue(0),
'special_price' => $this->decimal(10, 2)->notNull()->defaultValue(0),
'comment' => $this->string(10),
'is_deleted' => $this->boolean()->defaultValue(0),
'created_at' => $this->dateTime()->notNull(),
'updated_at' => $this->ti`enter code here`mestamp()
];
$this->createTable('tbl_ironing_order_item', $columns, $tableOptions);
}
動作しない、私は、サーバーの移行に事業を展開し、最近の移行は、エラーが表示されない、サーブ上で実行していない新しいモジュールを作成し、 はどのように私は、マイグレーションを実行することができますデプロイ時に?yii2 /移行私はフレームワークをyii2使用しています
。これらのファイルは、攻撃の命名規則に従う必要があることに注意してください。 –