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.

37 line
844B

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