migrations/Version20260804095403.php line 1
<?phpdeclare(strict_types=1);namespace DoctrineMigrations;use Doctrine\DBAL\Schema\Schema;use Doctrine\Migrations\AbstractMigration;/*** Auto-generated Migration: Please modify to your needs!*/final class Version20260804095403 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('CREATE TABLE youtube_google_account (id INT AUTO_INCREMENT NOT NULL, social_media_id INT NOT NULL, google_user_email VARCHAR(255) DEFAULT NULL, access_token_encrypted LONGTEXT DEFAULT NULL, refresh_token_encrypted LONGTEXT NOT NULL, access_token_expires_at DATETIME DEFAULT NULL, scope LONGTEXT DEFAULT NULL, revoked TINYINT(1) NOT NULL, created_at DATETIME DEFAULT NULL, updated_at DATETIME DEFAULT NULL, UNIQUE INDEX UNIQ_F63D9F2C64AE4959 (social_media_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');$this->addSql('ALTER TABLE youtube_google_account ADD CONSTRAINT FK_F63D9F2C64AE4959 FOREIGN KEY (social_media_id) REFERENCES social_media (id)');$this->addSql('ALTER TABLE user CHANGE roles roles JSON NOT NULL COMMENT \'(DC2Type:json)\'');}public function down(Schema $schema): void{// this down() migration is auto-generated, please modify it to your needs$this->addSql('ALTER TABLE youtube_google_account DROP FOREIGN KEY FK_F63D9F2C64AE4959');$this->addSql('DROP TABLE youtube_google_account');$this->addSql('ALTER TABLE user CHANGE roles roles JSON NOT NULL COMMENT \'(DC2Type:json)\'');}}