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.

28 lines
618B

  1. <?php
  2. use yii\db\Migration;
  3. use yii\db\Schema;
  4. use common\logic\Producer\Producer\Model\Producer;
  5. /**
  6. * Class m220915_072309_producer_add_option_billing_frequency
  7. */
  8. class m220915_072309_producer_add_option_billing_frequency extends Migration
  9. {
  10. /**
  11. * {@inheritdoc}
  12. */
  13. public function safeUp()
  14. {
  15. $this->addColumn('producer', 'option_billing_frequency', Schema::TYPE_STRING.' DEFAULT \''.Producer::BILLING_FREQUENCY_MONTHLY.'\'');
  16. }
  17. /**
  18. * {@inheritdoc}
  19. */
  20. public function safeDown()
  21. {
  22. $this->dropColumn('producer','option_billing_frequency');
  23. }
  24. }