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.

m201218_071628_add_option_export_csv.php 410B

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