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.

m220915_072309_producer_add_option_billing_frequency.php 612B

пре 1 година
пре 1 година
123456789101112131415161718192021222324252627
  1. <?php
  2. use yii\db\Migration;
  3. use yii\db\Schema;
  4. use common\logic\Producer\Producer\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. }