您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

m190118_084149_add_field_online_payment.php 329B

12345678910111213141516
  1. <?php
  2. use yii\db\Migration;
  3. use yii\db\Schema;
  4. class m190118_084149_add_field_online_payment extends Migration {
  5. public function up() {
  6. $this->addColumn('producer', 'online_payment', Schema::TYPE_BOOLEAN) ;
  7. }
  8. public function down() {
  9. $this->dropColumn('producer', 'online_payment') ;
  10. }
  11. }