```
✨ feat(Product.php): Ajoute la liaison ManyToMany avec l'entité Options ✨ feat(Devis.php): Ajoute la propriété isNotAddCaution pour masquer la caution ♻️ refactor(.env): Met à jour les URLs de SIGN, STRIPE et CONTRAT ✨ feat(workflow.twig): Adapte le workflow et supprime l'étape de caution ✨ feat(NewDevisType.php): Ajoute un champ pour gérer
This commit is contained in:
31
migrations/Version20260203140718.php
Normal file
31
migrations/Version20260203140718.php
Normal file
@@ -0,0 +1,31 @@
|
||||
<?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 Version20260203140718 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 devis ADD is_not_add_caution BOOLEAN DEFAULT false NOT NULL');
|
||||
}
|
||||
|
||||
public function down(Schema $schema): void
|
||||
{
|
||||
// this down() migration is auto-generated, please modify it to your needs
|
||||
$this->addSql('ALTER TABLE devis DROP is_not_add_caution');
|
||||
}
|
||||
}
|
||||
37
migrations/Version20260204075839.php
Normal file
37
migrations/Version20260204075839.php
Normal file
@@ -0,0 +1,37 @@
|
||||
<?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 Version20260204075839 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 product_options (product_id INT NOT NULL, options_id INT NOT NULL, PRIMARY KEY (product_id, options_id))');
|
||||
$this->addSql('CREATE INDEX IDX_1ECE1374584665A ON product_options (product_id)');
|
||||
$this->addSql('CREATE INDEX IDX_1ECE1373ADB05F1 ON product_options (options_id)');
|
||||
$this->addSql('ALTER TABLE product_options ADD CONSTRAINT FK_1ECE1374584665A FOREIGN KEY (product_id) REFERENCES product (id) ON DELETE CASCADE');
|
||||
$this->addSql('ALTER TABLE product_options ADD CONSTRAINT FK_1ECE1373ADB05F1 FOREIGN KEY (options_id) REFERENCES options (id) ON DELETE CASCADE');
|
||||
}
|
||||
|
||||
public function down(Schema $schema): void
|
||||
{
|
||||
// this down() migration is auto-generated, please modify it to your needs
|
||||
$this->addSql('ALTER TABLE product_options DROP CONSTRAINT FK_1ECE1374584665A');
|
||||
$this->addSql('ALTER TABLE product_options DROP CONSTRAINT FK_1ECE1373ADB05F1');
|
||||
$this->addSql('DROP TABLE product_options');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user