|
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- <?php
-
-
- use yii\db\Migration;
- use yii\db\mysql\Schema;
-
- class m190222_090304_ajout_champs_options_credit extends Migration {
-
- public function up() {
- $this->addColumn('producer', 'credit_limit', Schema::TYPE_FLOAT) ;
- $this->addColumn('producer', 'use_credit_checked_default', Schema::TYPE_BOOLEAN.' DEFAULT 1') ;
- }
-
- public function down() {
- $this->dropColumn('producer', 'credit_limit') ;
- $this->dropColumn('producer', 'use_credit_checked_default') ;
- }
- }
|