<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20240304183943 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$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');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$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');
}
}