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.

44 satır
911B

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