migrations/Version20240304183943.php line 1

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace DoctrineMigrations;
  4. use Doctrine\DBAL\Schema\Schema;
  5. use Doctrine\Migrations\AbstractMigration;
  6. /**
  7.  * Auto-generated Migration: Please modify to your needs!
  8.  */
  9. final class Version20240304183943 extends AbstractMigration
  10. {
  11.     public function getDescription(): string
  12.     {
  13.         return '';
  14.     }
  15.     public function up(Schema $schema): void
  16.     {
  17.         // this up() migration is auto-generated, please modify it to your needs
  18.         $this->addSql('ALTER TABLE user_subscriptions ADD platform VARCHAR(255) NOT NULL, ADD transaction_id VARCHAR(255) NOT NULL, ADD original_transaction_id VARCHAR(255) DEFAULT NULL, ADD web_order_line_item_id VARCHAR(255) DEFAULT NULL, ADD bundle_id VARCHAR(255) DEFAULT NULL, ADD product_id VARCHAR(255) DEFAULT NULL, ADD subscription_group_identifier VARCHAR(255) DEFAULT NULL, ADD purchase_date DATE DEFAULT NULL, ADD original_purchase_date DATE DEFAULT NULL, ADD expires_date DATE DEFAULT NULL, ADD quantity INT DEFAULT NULL, ADD type VARCHAR(255) DEFAULT NULL, ADD in_app_ownership_type VARCHAR(255) DEFAULT NULL, ADD signed_date DATE DEFAULT NULL, ADD offer_type INT DEFAULT NULL, ADD environment VARCHAR(255) DEFAULT NULL, ADD transaction_reason VARCHAR(255) DEFAULT NULL, ADD storefront VARCHAR(255) DEFAULT NULL, ADD store_front_id INT DEFAULT NULL, ADD price DOUBLE PRECISION DEFAULT NULL, ADD currency VARCHAR(255) DEFAULT NULL, ADD offer_discount_type VARCHAR(255) DEFAULT NULL');
  19.     }
  20.     public function down(Schema $schema): void
  21.     {
  22.         // this down() migration is auto-generated, please modify it to your needs
  23.         $this->addSql('ALTER TABLE user_subscriptions DROP platform, DROP transaction_id, DROP original_transaction_id, DROP web_order_line_item_id, DROP bundle_id, DROP product_id, DROP subscription_group_identifier, DROP purchase_date, DROP original_purchase_date, DROP expires_date, DROP quantity, DROP type, DROP in_app_ownership_type, DROP signed_date, DROP offer_type, DROP environment, DROP transaction_reason, DROP storefront, DROP store_front_id, DROP price, DROP currency, DROP offer_discount_type');
  24.     }
  25. }