<?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 Version20260810111213 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 furious_project (id INT AUTO_INCREMENT NOT NULL, source_id VARCHAR(64) NOT NULL, furious_id INT DEFAULT NULL, title VARCHAR(255) NOT NULL, entite VARCHAR(64) NOT NULL, total_amount DOUBLE PRECISION NOT NULL, vat DOUBLE PRECISION NOT NULL, currency VARCHAR(8) DEFAULT NULL, date_valeur 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)\', facturable TINYINT(1) NOT NULL, actif TINYINT(1) DEFAULT NULL, referents_projet LONGTEXT NOT NULL COMMENT \'(DC2Type:json)\', referents_business LONGTEXT NOT NULL COMMENT \'(DC2Type:json)\', billing_contact INT NOT NULL, contact1 INT DEFAULT NULL, contact2 INT DEFAULT NULL, contact3 INT DEFAULT NULL, execution_place INT DEFAULT NULL, proposal_id INT DEFAULT NULL, project_pipe INT DEFAULT NULL, project_todo_pipe_id INT DEFAULT NULL, project_type LONGTEXT DEFAULT NULL COMMENT \'(DC2Type:json)\', campain LONGTEXT DEFAULT NULL COMMENT \'(DC2Type:json)\', advancement VARCHAR(32) DEFAULT NULL, is_rate_card_project TINYINT(1) DEFAULT NULL, is_rate_card_advancement TINYINT(1) DEFAULT NULL, is_load_advancement TINYINT(1) DEFAULT NULL, ponderations LONGTEXT DEFAULT NULL COMMENT \'(DC2Type:json)\', tacite_reconduction TINYINT(1) DEFAULT NULL, client_configuration INT DEFAULT NULL, automatic_invoice TINYINT(1) DEFAULT NULL, automatic_invoice_reminder TINYINT(1) DEFAULT NULL, billing_schedule LONGTEXT DEFAULT NULL COMMENT \'(DC2Type:json)\', billing_schedule_date LONGTEXT DEFAULT NULL COMMENT \'(DC2Type:json)\', billing_schedule_date_payment LONGTEXT DEFAULT NULL COMMENT \'(DC2Type:json)\', billing_predictive_schedule_date LONGTEXT DEFAULT NULL COMMENT \'(DC2Type:json)\', budget_by_bu LONGTEXT DEFAULT NULL COMMENT \'(DC2Type:json)\', restricted_time_users LONGTEXT DEFAULT NULL COMMENT \'(DC2Type:json)\', custom_fields LONGTEXT DEFAULT NULL COMMENT \'(DC2Type:json)\', UNIQUE INDEX uniq_furious_project_source (source_id), 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 furious_project');
}
}