您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

21 行
584B

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