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.

20 satır
597B

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