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.

31 lines
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. }