<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
final class Version20260914120000 extends AbstractMigration
{
public function getDescription(): string
{
return 'Create furious_proposal table (migration Furious phase 2)';
}
public function up(Schema $schema): void
{
$this->addSql('CREATE TABLE furious_proposal (id INT AUTO_INCREMENT NOT NULL, source_id VARCHAR(64) NOT NULL, furious_id INT DEFAULT NULL, project_source_id VARCHAR(64) NOT NULL, title VARCHAR(255) NOT NULL, entity VARCHAR(64) NOT NULL, amount DOUBLE PRECISION NOT NULL, vat DOUBLE PRECISION NOT NULL, currency VARCHAR(8) NOT NULL, pipe INT NOT NULL, probability INT NOT NULL, client_id INT NOT NULL, assigned_to INT DEFAULT NULL, display_date DATE NOT NULL COMMENT \'(DC2Type:date_immutable)\', from_date DATE NOT NULL COMMENT \'(DC2Type:date_immutable)\', to_date DATE NOT NULL COMMENT \'(DC2Type:date_immutable)\', description LONGTEXT DEFAULT NULL, tag LONGTEXT NOT NULL COMMENT \'(DC2Type:json)\', custom_fields LONGTEXT DEFAULT NULL COMMENT \'(DC2Type:json)\', UNIQUE INDEX uniq_furious_proposal_source (source_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
}
public function down(Schema $schema): void
{
$this->addSql('DROP TABLE furious_proposal');
}
}