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.

m190206_135142_ajout_champs_gestion_credit_avancee.php 605B

12345678910111213141516171819
  1. <?php
  2. use yii\db\Migration;
  3. use yii\db\mysql\Schema;
  4. use common\logic\Producer\Producer\Model\Producer;
  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. }