migrations/Version20250702140059.php line 1

  1. <?php
  2. declare(strict_types=1);
  3. namespace DoctrineMigrations;
  4. use Doctrine\DBAL\Schema\Schema;
  5. use Doctrine\Migrations\AbstractMigration;
  6. /**
  7.  * Auto-generated Migration: Please modify to your needs!
  8.  */
  9. final class Version20250702140059 extends AbstractMigration
  10. {
  11.     public function getDescription(): string
  12.     {
  13.         return '';
  14.     }
  15.     public function up(Schema $schema): void
  16.     {
  17.         // this up() migration is auto-generated, please modify it to your needs
  18.         $this->addSql(<<<'SQL'
  19.             CREATE TABLE client_promotion (client_id INT UNSIGNED NOT NULL, promo_code_id INT NOT NULL COMMENT 'référence unique du code promo', available_solde INT NOT NULL, INDEX IDX_2A3DADDE19EB6921 (client_id), INDEX IDX_2A3DADDE2FAE4625 (promo_code_id), PRIMARY KEY(client_id, promo_code_id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB
  20.         SQL);
  21.     }
  22.     public function down(Schema $schema): void
  23.     {
  24.         // this down() migration is auto-generated, please modify it to your needs
  25.     }
  26. }