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

m190305_104710_producer_siret_non_requis.php 365B

12345678910111213141516
  1. <?php
  2. use yii\db\Migration;
  3. use yii\db\mysql\Schema;
  4. class m190305_104710_producer_siret_non_requis extends Migration {
  5. public function up() {
  6. $this->alterColumn('producer', 'siret', Schema::TYPE_STRING.' DEFAULT NULL') ;
  7. }
  8. public function down() {
  9. $this->alterColumn('producer', 'siret', Schema::TYPE_STRING.' NOT NULL') ;
  10. }
  11. }