<?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 Version20230705100034 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("INSERT INTO ref_type_mouvement (type_mouvement, description, form_name) VALUES ('Operations','Consommation(Operations)', 'ope')");
$this->addSql("INSERT INTO ref_statut VALUES (1,'PLANIFIÉ')");
$this->addSql("INSERT INTO ref_statut VALUES (2,'EN COURS')");
$this->addSql("INSERT INTO ref_statut VALUES (3,'RÉALISÉ')");
$this->addSql("INSERT INTO ref_etat_vente (etat_libelle, etat_sf) VALUES ('Initiale','INITIALE')");
$this->addSql("INSERT INTO ref_etat_vente (etat_libelle, etat_sf) VALUES ('En route','EN_ROUTE')");
$this->addSql("INSERT INTO ref_etat_vente (etat_libelle, etat_sf) VALUES ('Vente','VENTE')");
$this->addSql("INSERT INTO ref_etat_vente (etat_libelle, etat_sf) VALUES ('Vente Termine','VENTE_TERMINE')");
$this->addSql("INSERT INTO ref_etat_vente (etat_libelle, etat_sf) VALUES ('Cloture','CLOTURE')");
$this->addSql("INSERT INTO ref_produit (libelle) VALUES ('Achat')");
$this->addSql("INSERT INTO ref_produit (libelle) VALUES ('Vente')");
$this->addSql("INSERT INTO ref_type_mouvement (type_mouvement, description, form_name) VALUES ('Productions','Productions','_production')");
// $this->addSql("INSERT INTO ref_type_mouvement (type_mouvement, description, form_name) VALUES ('Vente','Vente','vente')");
// $this->addSql("INSERT INTO ref_type_mouvement (type_mouvement, description, form_name) VALUES ('Consommation','Consommation des produits','_consommation')");
$this->addSql("INSERT INTO ref_profil (profil_lib, profil_sf) VALUES ('Vendeur','ROLE_VENDEUR')");
$this->addSql("UPDATE tbl_detail_produit_operation SET operations_id = 4 WHERE operations_id is NULL");
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
}
}