您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

m200225_153956_document_display_orders.php 614B

1234567891011121314151617181920
  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. }