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.

m210915_064446_add_option_stripe_endpoint.php 765B

3 jaren geleden
1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. use yii\db\Migration;
  3. use yii\db\Schema;
  4. /**
  5. * Class m210915_064446_add_option_stripe_endpoint
  6. */
  7. class m210915_064446_add_option_stripe_endpoint extends Migration
  8. {
  9. /**
  10. * {@inheritdoc}
  11. */
  12. public function safeUp()
  13. {
  14. $this->addColumn('producer', 'option_stripe_endpoint_secret', Schema::TYPE_STRING);
  15. }
  16. /**
  17. * {@inheritdoc}
  18. */
  19. public function safeDown()
  20. {
  21. $this->dropColumn('producer', 'option_stripe_endpoint_secret');
  22. }
  23. /*
  24. // Use up()/down() to run migration code without a transaction.
  25. public function up()
  26. {
  27. }
  28. public function down()
  29. {
  30. echo "m210915_064446_add_option_stripe_endpoint cannot be reverted.\n";
  31. return false;
  32. }
  33. */
  34. }