You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 line
365B

  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. }