Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

20 rindas
605B

  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. }