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

m200603_062748_add_option_producer_mail_confirm.php 441B

12345678910111213141516171819
  1. <?php
  2. use yii\db\Migration;
  3. use yii\db\Schema;
  4. class m200603_062748_add_option_producer_mail_confirm extends Migration
  5. {
  6. public function safeUp()
  7. {
  8. $this->addColumn('producer', 'option_email_confirm', Schema::TYPE_BOOLEAN.' DEFAULT 0');
  9. }
  10. public function safeDown()
  11. {
  12. $this->dropColumn('producer', 'option_email_confirm');
  13. return false;
  14. }
  15. }