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.

19 lines
391B

  1. <?php
  2. use yii\db\Migration;
  3. class m201218_071628_add_option_export_csv extends Migration
  4. {
  5. public function safeUp()
  6. {
  7. $this->addColumn('producer', 'option_csv_export_all_products', Schema::TYPE_BOOLEAN.' DEFAULT 0');
  8. }
  9. public function safeDown()
  10. {
  11. $this->dropColumn('producer', 'option_csv_export_all_products');
  12. return false;
  13. }
  14. }