Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

33 rindas
800B

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