Files
e-cosplay/migrations/Version20251126073931.php
Serreau Jovann 9cca3b9e0e ⬆️ chore(composer): Met à jour les dépendances et les configurations du projet.
 feat(Members): Ajoute les entités MembersPage et MembersCosplan et leurs relations.
🔧 fix(caddy): Corrige la redirection des assets Trustpilot dans Caddyfile.
⚙️ chore(vich_uploader): Ajoute les configurations VichUploader pour MembersPage.
2025-11-26 08:50:24 +01:00

36 lines
1.3 KiB
PHP

<?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 Version20251126073931 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 members_cosplan (id SERIAL NOT NULL, member_id INT DEFAULT NULL, personnage VARCHAR(255) NOT NULL, univers VARCHAR(255) NOT NULL, description TEXT DEFAULT NULL, PRIMARY KEY(id))');
$this->addSql('CREATE INDEX IDX_7BAC19D77597D3FE ON members_cosplan (member_id)');
$this->addSql('ALTER TABLE members_cosplan ADD CONSTRAINT FK_7BAC19D77597D3FE FOREIGN KEY (member_id) REFERENCES members (id) NOT DEFERRABLE INITIALLY IMMEDIATE');
}
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 members_cosplan DROP CONSTRAINT FK_7BAC19D77597D3FE');
$this->addSql('DROP TABLE members_cosplan');
}
}