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

31 行
690B

  1. <?php
  2. use yii\db\Migration;
  3. use yii\db\Schema;
  4. /**
  5. * Class m221010_124540_document_is_sent
  6. */
  7. class m221010_124540_document_is_sent extends Migration
  8. {
  9. /**
  10. * {@inheritdoc}
  11. */
  12. public function safeUp()
  13. {
  14. $this->addColumn('quotation', 'is_sent', Schema::TYPE_BOOLEAN);
  15. $this->addColumn('delivery_note', 'is_sent', Schema::TYPE_BOOLEAN);
  16. $this->addColumn('invoice', 'is_sent', Schema::TYPE_BOOLEAN);
  17. }
  18. /**
  19. * {@inheritdoc}
  20. */
  21. public function safeDown()
  22. {
  23. $this->dropColumn('quotation', 'is_sent');
  24. $this->dropColumn('delivery_note', 'is_sent');
  25. $this->dropColumn('invoice', 'is_sent');
  26. }
  27. }