<?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 Version20220923122023 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 company (id INT AUTO_INCREMENT NOT NULL, company VARCHAR(255) NOT NULL, firstname VARCHAR(255) NOT NULL, lastname VARCHAR(255) NOT NULL, password LONGTEXT DEFAULT NULL, type VARCHAR(255) NOT NULL, adress VARCHAR(255) DEFAULT NULL, zipcode VARCHAR(255) DEFAULT NULL, city VARCHAR(255) DEFAULT NULL, country VARCHAR(255) NOT NULL, gender VARCHAR(255) DEFAULT NULL, company_address VARCHAR(255) DEFAULT NULL, company_zip_code VARCHAR(255) DEFAULT NULL, company_city VARCHAR(255) DEFAULT NULL, company_country VARCHAR(255) DEFAULT NULL, calling_code INT NOT NULL, phone VARCHAR(255) NOT NULL, nationality VARCHAR(255) NOT NULL, account_owner VARCHAR(255) DEFAULT NULL, iban VARCHAR(255) DEFAULT NULL, bic VARCHAR(255) DEFAULT NULL, vat VARCHAR(255) DEFAULT NULL, siret VARCHAR(255) DEFAULT NULL, birth_date DATETIME NOT NULL, contact_mail 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 company');
}
}