<?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 Version20220215091700 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 furnizor (id INT AUTO_INCREMENT NOT NULL, denumire VARCHAR(255) NOT NULL, forma_organizare VARCHAR(255) DEFAULT NULL, cif VARCHAR(255) NOT NULL, registrul_comertului VARCHAR(255) NOT NULL, cif_intracomunitar VARCHAR(255) DEFAULT NULL, caen INT DEFAULT NULL, capital_social INT DEFAULT NULL, telefon INT DEFAULT NULL, fax INT DEFAULT NULL, email VARCHAR(255) DEFAULT NULL, website VARCHAR(255) DEFAULT NULL, date_aditionale VARCHAR(255) DEFAULT NULL, administrator VARCHAR(255) DEFAULT NULL, imputernicit VARCHAR(255) DEFAULT NULL, strada VARCHAR(255) DEFAULT NULL, localitate VARCHAR(255) DEFAULT NULL, judet VARCHAR(255) DEFAULT NULL, cod_postal INT DEFAULT 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 furnizor');
$this->addSql('ALTER TABLE gestiune CHANGE gestiune gestiune VARCHAR(255) NOT NULL COLLATE `utf8mb4_unicode_ci`');
$this->addSql('ALTER TABLE grid CHANGE test test VARCHAR(255) DEFAULT NULL COLLATE `utf8mb4_unicode_ci`');
$this->addSql('ALTER TABLE intrari CHANGE serie serie VARCHAR(255) DEFAULT NULL COLLATE `utf8mb4_unicode_ci`');
$this->addSql('ALTER TABLE products CHANGE denumire denumire VARCHAR(255) NOT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE descriere descriere VARCHAR(255) DEFAULT NULL COLLATE `utf8mb4_unicode_ci`');
$this->addSql('ALTER TABLE prospecti CHANGE denumire denumire VARCHAR(255) NOT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE note note VARCHAR(255) DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE contacte contacte LONGTEXT DEFAULT NULL COLLATE `utf8mb4_unicode_ci` COMMENT \'(DC2Type:array)\'');
$this->addSql('ALTER TABLE `user` CHANGE email email VARCHAR(180) NOT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE roles roles LONGTEXT NOT NULL COLLATE `utf8mb4_unicode_ci` COMMENT \'(DC2Type:json)\', CHANGE password password VARCHAR(255) NOT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE nume nume VARCHAR(255) NOT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE prenume prenume VARCHAR(255) NOT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE activ activ VARCHAR(255) NOT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE avatar_link avatar_link VARCHAR(255) DEFAULT NULL COLLATE `utf8mb4_unicode_ci`');
}
}