<?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 Version20200925064705 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 SEQUENCE voie_id_seq INCREMENT BY 1 MINVALUE 1 START 1');
$this->addSql('CREATE TABLE voie (id INT NOT NULL, identifiant VARCHAR(4) DEFAULT NULL, cle_rivoli VARCHAR(1) DEFAULT NULL, code_nature VARCHAR(4) DEFAULT NULL, libelle VARCHAR(26) DEFAULT NULL, caractere_rur VARCHAR(1) DEFAULT NULL, privee BOOLEAN NOT NULL, population_sup3000 BOOLEAN NOT NULL, population_part INT DEFAULT NULL, population_fictive INT DEFAULT NULL, date_annulation DATE DEFAULT NULL, date_creation_article DATE DEFAULT NULL, code_majic VARCHAR(5) DEFAULT NULL, type VARCHAR(1) NOT NULL, lieu_dit_bati BOOLEAN DEFAULT NULL, PRIMARY KEY(id))');
}
public function down(Schema $schema) : void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('CREATE SCHEMA public');
$this->addSql('DROP SEQUENCE voie_id_seq CASCADE');
$this->addSql('DROP TABLE voie');
}
}