<?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 Version20220302150853 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 bext_colis (id INT AUTO_INCREMENT NOT NULL, emballage VARCHAR(255) NOT NULL, commande_bext VARCHAR(255) NOT NULL, id_order INT DEFAULT NULL, date_expe DATE NOT NULL, date_prep DATE NOT NULL, hauteur DOUBLE PRECISION NOT NULL, largeur DOUBLE PRECISION NOT NULL, profondeur DOUBLE PRECISION NOT NULL, poids_net DOUBLE PRECISION NOT NULL, poids DOUBLE PRECISION NOT NULL, tracking VARCHAR(255) NOT NULL, url_transporteur VARCHAR(255) NOT NULL, code_service VARCHAR(255) NOT NULL, code_transporteur VARCHAR(255) NOT NULL, zip_dest VARCHAR(255) NOT NULL, pays_dest VARCHAR(255) NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('DROP TABLE bext_colis');
}
}