migrations/Version20230705100034.php line 1

Open in your IDE?
  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 Version20230705100034 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("INSERT INTO ref_type_mouvement (type_mouvement, description, form_name) VALUES ('Operations','Consommation(Operations)', 'ope')");
  19.         $this->addSql("INSERT INTO ref_statut  VALUES (1,'PLANIFIÉ')");
  20.         $this->addSql("INSERT INTO ref_statut  VALUES (2,'EN COURS')");
  21.         $this->addSql("INSERT INTO ref_statut  VALUES (3,'RÉALISÉ')"); 
  22.         $this->addSql("INSERT INTO ref_etat_vente (etat_libelle, etat_sf) VALUES ('Initiale','INITIALE')");
  23.         $this->addSql("INSERT INTO ref_etat_vente (etat_libelle, etat_sf) VALUES ('En route','EN_ROUTE')");
  24.         $this->addSql("INSERT INTO ref_etat_vente (etat_libelle, etat_sf) VALUES ('Vente','VENTE')");
  25.         $this->addSql("INSERT INTO ref_etat_vente (etat_libelle, etat_sf) VALUES ('Vente Termine','VENTE_TERMINE')");
  26.         $this->addSql("INSERT INTO ref_etat_vente (etat_libelle, etat_sf) VALUES ('Cloture','CLOTURE')");
  27.         $this->addSql("INSERT INTO ref_produit (libelle) VALUES ('Achat')");
  28.         $this->addSql("INSERT INTO ref_produit (libelle) VALUES ('Vente')");
  29.         $this->addSql("INSERT INTO ref_type_mouvement (type_mouvement, description, form_name) VALUES ('Productions','Productions','_production')");
  30.         // $this->addSql("INSERT INTO ref_type_mouvement (type_mouvement, description, form_name) VALUES ('Vente','Vente','vente')");
  31.         // $this->addSql("INSERT INTO ref_type_mouvement (type_mouvement, description, form_name) VALUES ('Consommation','Consommation des produits','_consommation')");
  32.         $this->addSql("INSERT INTO ref_profil (profil_lib, profil_sf) VALUES ('Vendeur','ROLE_VENDEUR')");
  33.         $this->addSql("UPDATE tbl_detail_produit_operation SET operations_id = 4 WHERE operations_id is NULL");
  34.     }
  35.     public function down(Schema $schema): void
  36.     {
  37.         // this down() migration is auto-generated, please modify it to your needs
  38.     }
  39. }