migrations/Version20230116004027.php line 1

  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 Version20230116004027 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 market_item DROP token_id');
  19.         $this->addSql('ALTER TABLE sync_log DROP nft_new');
  20.         $this->addSql('ALTER TABLE theta_wallet ADD is_approved_for_all_market TINYINT(1) NOT NULL');
  21.     }
  22.     public function down(Schema $schema): void
  23.     {
  24.         // this down() migration is auto-generated, please modify it to your needs
  25.         $this->addSql('ALTER TABLE market_item ADD token_id INT NOT NULL');
  26.         $this->addSql('ALTER TABLE sync_log ADD nft_new INT DEFAULT NULL');
  27.         $this->addSql('ALTER TABLE theta_wallet DROP is_approved_for_all_market');
  28.     }
  29. }