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.

21 lines
614B

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