<?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 Version20220216133151 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('ALTER TABLE inventar ADD data_inventar DATE NOT NULL, ADD id_gestiune INT NOT NULL');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE furnizor CHANGE denumire denumire VARCHAR(255) NOT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE forma_organizare forma_organizare VARCHAR(255) DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE cif cif VARCHAR(255) NOT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE registrul_comertului registrul_comertului VARCHAR(255) NOT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE cif_intracomunitar cif_intracomunitar VARCHAR(255) DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE email email VARCHAR(255) DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE website website VARCHAR(255) DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE date_aditionale date_aditionale VARCHAR(255) DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE administrator administrator VARCHAR(255) DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE imputernicit imputernicit VARCHAR(255) DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE strada strada VARCHAR(255) DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE localitate localitate VARCHAR(255) DEFAULT NULL COLLATE `utf8mb4_unicode_ci`, CHANGE judet judet VARCHAR(255) DEFAULT NULL COLLATE `utf8mb4_unicode_ci`');
$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 inventar DROP data_inventar, DROP id_gestiune');
$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`');
}
}