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.

19 lines
559B

  1. <?php
  2. use yii\db\Migration;
  3. use yii\db\mysql\Schema;
  4. class m190206_135142_ajout_champs_gestion_credit_avancee extends Migration {
  5. public function up() {
  6. $this->addColumn('producer', 'credit_functioning', Schema::TYPE_STRING.' DEFAULT \''.ProducerModel::CREDIT_FUNCTIONING_OPTIONAL.'\'') ;
  7. $this->addColumn('point_sale', 'credit_functioning', Schema::TYPE_STRING) ;
  8. }
  9. public function down() {
  10. $this->dropColumn('producer', 'credit_functioning') ;
  11. $this->dropColumn('point_sale', 'credit_functioning') ;
  12. }
  13. }