<?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 Version20260110102212 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 tmp_conteneur_reception ADD is_invoice_generate TINYINT(1) NOT NULL, ADD is_container TINYINT(1) NOT NULL, ADD is_member_container TINYINT(1) NOT NULL');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('DROP TABLE c');
$this->addSql('ALTER TABLE paiement DROP FOREIGN KEY FK_B1DC7A1EB3043B48');
$this->addSql('DROP INDEX IDX_B1DC7A1EB3043B48 ON paiement');
$this->addSql('ALTER TABLE paiement CHANGE id_ag_id id_ag_id INT NOT NULL');
$this->addSql('ALTER TABLE position CHANGE message message TEXT NOT NULL');
$this->addSql('ALTER TABLE tmp_conteneur_reception DROP is_invoice_generate, DROP is_container, DROP is_member_container');
$this->addSql('ALTER TABLE commande DROP FOREIGN KEY FK_6EEAA67DB3043B48');
$this->addSql('ALTER TABLE commande RENAME INDEX idx_6eeaa67d2f864e44 TO id_ct_pr_id');
$this->addSql('ALTER TABLE depenses_contenaire DROP FOREIGN KEY FK_1046BF5FB3043B48');
$this->addSql('DROP INDEX IDX_1046BF5FB3043B48 ON depenses_contenaire');
$this->addSql('ALTER TABLE tmp_volume DROP FOREIGN KEY FK_C0914FD482EA2E54');
$this->addSql('ALTER TABLE tmp_volume CHANGE commande_id commande_id INT NOT NULL, CHANGE volume volume NUMERIC(65, 8) NOT NULL, CHANGE modification modification TEXT DEFAULT NULL');
$this->addSql('ALTER TABLE tmp_volume RENAME INDEX idx_c0914fd482ea2e54 TO commande_id');
$this->addSql('ALTER TABLE reception CHANGE ville_id ville_id INT DEFAULT 4, CHANGE destville_id destville_id INT DEFAULT 4, CHANGE is_calcule is_calcule TINYINT(1) DEFAULT 0 NOT NULL');
$this->addSql('ALTER TABLE suivi_contenaire DROP FOREIGN KEY FK_B7D38ACA2F864E44');
$this->addSql('ALTER TABLE tmp_marchandise DROP FOREIGN KEY FK_26E03A9182EA2E54');
$this->addSql('ALTER TABLE tmp_marchandise CHANGE commande_id commande_id INT NOT NULL, CHANGE modification modification TEXT DEFAULT NULL');
$this->addSql('ALTER TABLE tmp_marchandise RENAME INDEX idx_26e03a9182ea2e54 TO commande_id');
$this->addSql('ALTER TABLE agent CHANGE admin admin VARCHAR(5) DEFAULT \'0\' NOT NULL');
$this->addSql('ALTER TABLE programme_contenaire DROP FOREIGN KEY FK_FAD851CE3A5435D1');
$this->addSql('DROP INDEX IDX_FAD851CE3A5435D1 ON programme_contenaire');
$this->addSql('ALTER TABLE reduction DROP FOREIGN KEY FK_B1E754685573A630');
$this->addSql('ALTER TABLE reduction DROP FOREIGN KEY FK_B1E75468B3043B48');
$this->addSql('DROP INDEX IDX_B1E754685573A630 ON reduction');
$this->addSql('DROP INDEX IDX_B1E75468B3043B48 ON reduction');
}
}