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.

32 lines
674B

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