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.

16 lines
358B

  1. <?php
  2. use yii\db\Migration;
  3. use yii\db\Schema;
  4. class m180315_090156_add_champs_commande_paiement_auto extends Migration {
  5. public function up() {
  6. $this->addColumn('commande', 'paiement_automatique', Schema::TYPE_BOOLEAN.' DEFAULT 0') ;
  7. }
  8. public function down() {
  9. $this->dropColumn('commande', 'paiement_automatique') ;
  10. }
  11. }