<?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 Version20220727103348 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('CREATE TABLE client_info (id INT AUTO_INCREMENT NOT NULL, first_name VARCHAR(255) DEFAULT NULL, last_name VARCHAR(255) DEFAULT NULL, department VARCHAR(255) DEFAULT NULL, msisdn VARCHAR(255) DEFAULT NULL, customer_no VARCHAR(255) DEFAULT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE contract (ContractKey VARCHAR(255) NOT NULL, AccessContractCode VARCHAR(255) DEFAULT NULL, Type_Contrat VARCHAR(255) DEFAULT NULL, CustomerKey VARCHAR(255) DEFAULT NULL, ContractNumber VARCHAR(255) DEFAULT NULL, PRIMARY KEY(ContractKey)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE msisdn (UnitSystemKey INT AUTO_INCREMENT NOT NULL, MSISDN VARCHAR(30) NOT NULL, Statut_ligne VARCHAR(30) NOT NULL, ICC VARCHAR(30) NOT NULL, ContractKey VARCHAR(30) NOT NULL, PRIMARY KEY(UnitSystemKey)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('ALTER TABLE form_data_service CHANGE field field VARCHAR(255) NOT NULL');
$this->addSql('CREATE UNIQUE INDEX UNIQ_EFD187415BF54558 ON form_data_service (field)');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('DROP TABLE client_info');
$this->addSql('DROP TABLE contract');
$this->addSql('DROP TABLE msisdn');
$this->addSql('DROP INDEX UNIQ_EFD187415BF54558 ON form_data_service');
$this->addSql('ALTER TABLE form_data_service CHANGE field field VARCHAR(255) DEFAULT NULL');
}
}