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

29 行
494B

  1. <?php
  2. use yii\db\Migration;
  3. use yii\db\Schema ;
  4. class m161117_094154_add_champs_code_boulangerie extends Migration
  5. {
  6. public function up()
  7. {
  8. $this->addColumn('etablissement', 'code', Schema::TYPE_STRING) ;
  9. }
  10. public function down()
  11. {
  12. $this->dropColumn('etablissement', 'code') ;
  13. }
  14. /*
  15. // Use safeUp/safeDown to run migration code within a transaction
  16. public function safeUp()
  17. {
  18. }
  19. public function safeDown()
  20. {
  21. }
  22. */
  23. }