migrations/Version20250417103350.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. final class Version20250417103350 extends AbstractMigration
  7. {
  8.     public function getDescription(): string
  9.     {
  10.         return '';
  11.     }
  12.     public function up(Schema $schema): void
  13.     {
  14.         $this->addSql('ALTER TABLE creator ADD tier BIGINT UNSIGNED DEFAULT NULL, ADD ethnicity BIGINT UNSIGNED DEFAULT NULL, ADD category_gender BIGINT UNSIGNED DEFAULT NULL, ADD age_group BIGINT UNSIGNED DEFAULT NULL, ADD category_parent BIGINT UNSIGNED DEFAULT NULL, ADD attractiveness_level BIGINT UNSIGNED DEFAULT NULL');
  15.     }
  16.     public function down(Schema $schema): void
  17.     {
  18.         $this->addSql('ALTER TABLE creator DROP tier, DROP ethnicity, DROP category_gender, DROP age_group, DROP category_parent, DROP attractiveness_level');
  19.     }
  20. }