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.

20 lines
593B

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