<?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 Version20251225001531 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 "join" ADD address VARCHAR(255) NOT NULL');
        $this->addSql('ALTER TABLE "join" ADD zip_code VARCHAR(255) NOT NULL');
        $this->addSql('ALTER TABLE "join" ADD city VARCHAR(255) NOT NULL');
        $this->addSql('ALTER TABLE "join" ADD pronom VARCHAR(255) NOT NULL');
        $this->addSql('ALTER TABLE "join" ADD sexe VARCHAR(255) NOT NULL');
        $this->addSql('ALTER TABLE "join" ADD insta_link VARCHAR(255) DEFAULT NULL');
        $this->addSql('ALTER TABLE "join" ADD facebook_link VARCHAR(255) NOT NULL');
        $this->addSql('ALTER TABLE "join" ADD tiktok_link VARCHAR(255) DEFAULT NULL');
        $this->addSql('ALTER TABLE "join" ADD is_discord BOOLEAN NOT NULL');
        $this->addSql('ALTER TABLE "join" ADD discord_account VARCHAR(255) DEFAULT NULL');
        $this->addSql('ALTER TABLE "join" ADD role TEXT NOT NULL');
        $this->addSql('COMMENT ON COLUMN "join".role IS \'(DC2Type:array)\'');
    }

    public function down(Schema $schema): void
    {
        // this down() migration is auto-generated, please modify it to your needs
        $this->addSql('CREATE SCHEMA public');
        $this->addSql('ALTER TABLE "join" DROP address');
        $this->addSql('ALTER TABLE "join" DROP zip_code');
        $this->addSql('ALTER TABLE "join" DROP city');
        $this->addSql('ALTER TABLE "join" DROP pronom');
        $this->addSql('ALTER TABLE "join" DROP sexe');
        $this->addSql('ALTER TABLE "join" DROP insta_link');
        $this->addSql('ALTER TABLE "join" DROP facebook_link');
        $this->addSql('ALTER TABLE "join" DROP tiktok_link');
        $this->addSql('ALTER TABLE "join" DROP is_discord');
        $this->addSql('ALTER TABLE "join" DROP discord_account');
        $this->addSql('ALTER TABLE "join" DROP role');
    }
}
