<?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 Version20240717124121 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 ictus_commande ADD is_livraison_valide TINYINT(1) DEFAULT NULL, ADD is_valide TINYINT(1) DEFAULT NULL, CHANGE id id INT AUTO_INCREMENT NOT NULL');
$this->addSql('ALTER TABLE user ADD is_admin TINYINT(1) DEFAULT NULL, ADD cin VARCHAR(255) DEFAULT NULL, CHANGE id id INT AUTO_INCREMENT NOT NULL, CHANGE roles roles JSON NOT NULL');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE ictus_commande DROP is_livraison_valide, DROP is_valide, CHANGE id id INT NOT NULL');
$this->addSql('ALTER TABLE user DROP is_admin, DROP cin, CHANGE id id INT NOT NULL, CHANGE roles roles JSON NOT NULL');
}
}