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.

m161125_091622_add_champs_commande_auto.php 639B

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