migrations/Version20260810111213.php line 1

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace DoctrineMigrations;
  4. use Doctrine\DBAL\Schema\Schema;
  5. use Doctrine\Migrations\AbstractMigration;
  6. /**
  7.  * Auto-generated Migration: Please modify to your needs!
  8.  */
  9. final class Version20260810111213 extends AbstractMigration
  10. {
  11.     public function getDescription(): string
  12.     {
  13.         return '';
  14.     }
  15.     public function up(Schema $schema): void
  16.     {
  17.         // this up() migration is auto-generated, please modify it to your needs
  18.         $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');
  19.     }
  20.     public function down(Schema $schema): void
  21.     {
  22.         // this down() migration is auto-generated, please modify it to your needs
  23.         $this->addSql('DROP TABLE furious_project');
  24.     }
  25. }