⬆️ 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.
This commit is contained in:
36
migrations/Version20251126073528.php
Normal file
36
migrations/Version20251126073528.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?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 Version20251126073528 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_page (id SERIAL NOT NULL, member_id INT DEFAULT NULL, title VARCHAR(255) NOT NULL, description TEXT DEFAULT NULL, avatar_file_name VARCHAR(255) DEFAULT NULL, avatar_dimensions JSON DEFAULT NULL, avatar_size VARCHAR(255) DEFAULT NULL, avatar_mine_type VARCHAR(255) DEFAULT NULL, avatar_original_name VARCHAR(255) DEFAULT NULL, update_at TIMESTAMP(0) WITHOUT TIME ZONE DEFAULT NULL, PRIMARY KEY(id))');
|
||||
$this->addSql('CREATE UNIQUE INDEX UNIQ_5B6096857597D3FE ON members_page (member_id)');
|
||||
$this->addSql('COMMENT ON COLUMN members_page.update_at IS \'(DC2Type:datetime_immutable)\'');
|
||||
$this->addSql('ALTER TABLE members_page ADD CONSTRAINT FK_5B6096857597D3FE 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_page DROP CONSTRAINT FK_5B6096857597D3FE');
|
||||
$this->addSql('DROP TABLE members_page');
|
||||
}
|
||||
}
|
||||
35
migrations/Version20251126073931.php
Normal file
35
migrations/Version20251126073931.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?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');
|
||||
}
|
||||
}
|
||||
43
migrations/Version20251126074809.php
Normal file
43
migrations/Version20251126074809.php
Normal file
@@ -0,0 +1,43 @@
|
||||
<?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 Version20251126074809 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 members_cosplan ADD cosplan_file_name VARCHAR(255) DEFAULT NULL');
|
||||
$this->addSql('ALTER TABLE members_cosplan ADD cosplan_dimensions JSON DEFAULT NULL');
|
||||
$this->addSql('ALTER TABLE members_cosplan ADD cosplan_size VARCHAR(255) DEFAULT NULL');
|
||||
$this->addSql('ALTER TABLE members_cosplan ADD cosplan_mine_type VARCHAR(255) DEFAULT NULL');
|
||||
$this->addSql('ALTER TABLE members_cosplan ADD cosplan_original_name VARCHAR(255) DEFAULT NULL');
|
||||
$this->addSql('ALTER TABLE members_cosplan ADD update_at TIMESTAMP(0) WITHOUT TIME ZONE DEFAULT NULL');
|
||||
$this->addSql('COMMENT ON COLUMN members_cosplan.update_at IS \'(DC2Type:datetime_immutable)\'');
|
||||
}
|
||||
|
||||
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 cosplan_file_name');
|
||||
$this->addSql('ALTER TABLE members_cosplan DROP cosplan_dimensions');
|
||||
$this->addSql('ALTER TABLE members_cosplan DROP cosplan_size');
|
||||
$this->addSql('ALTER TABLE members_cosplan DROP cosplan_mine_type');
|
||||
$this->addSql('ALTER TABLE members_cosplan DROP cosplan_original_name');
|
||||
$this->addSql('ALTER TABLE members_cosplan DROP update_at');
|
||||
}
|
||||
}
|
||||
34
migrations/Version20251126074920.php
Normal file
34
migrations/Version20251126074920.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?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 Version20251126074920 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 members_cosplan ADD is_approved BOOLEAN NOT NULL');
|
||||
$this->addSql('ALTER TABLE members_page ADD is_approved BOOLEAN NOT NULL');
|
||||
}
|
||||
|
||||
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 is_approved');
|
||||
$this->addSql('ALTER TABLE members_page DROP is_approved');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user