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.

m240514_082906_add_columns_producer_leave_period.php 858B

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