<?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 Version20221128204633 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 approvisionnement ADD date_peremption DATETIME DEFAULT NULL, ADD mode_payement VARCHAR(255) DEFAULT NULL');
$this->addSql('ALTER TABLE fournisseur ADD nom_societe VARCHAR(255) DEFAULT NULL, ADD nom_agent VARCHAR(255) DEFAULT NULL, ADD contact_agent INT DEFAULT NULL');
$this->addSql('ALTER TABLE patient ADD observation LONGTEXT DEFAULT NULL, ADD epouse TINYINT(1) DEFAULT NULL, ADD nom_mari VARCHAR(255) DEFAULT NULL');
$this->addSql('ALTER TABLE prescripteur ADD telephone INT DEFAULT NULL, ADD email VARCHAR(255) DEFAULT NULL');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE approvisionnement DROP date_peremption, DROP mode_payement');
$this->addSql('ALTER TABLE fournisseur DROP nom_societe, DROP nom_agent, DROP contact_agent');
$this->addSql('ALTER TABLE patient DROP observation, DROP epouse, DROP nom_mari');
$this->addSql('ALTER TABLE prescripteur DROP telephone, DROP email');
}
}