<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
final class Version20260914120100 extends AbstractMigration
{
public function getDescription(): string
{
return 'Create furious_invoice_milestone table (migration Furious phase 2)';
}
public function up(Schema $schema): void
{
$this->addSql('CREATE TABLE furious_invoice_milestone (id INT AUTO_INCREMENT NOT NULL, source_id VARCHAR(64) NOT NULL, furious_id INT DEFAULT NULL, proposal_source_id VARCHAR(64) NOT NULL, amount DOUBLE PRECISION NOT NULL, invoice_date DATE DEFAULT NULL COMMENT \'(DC2Type:date_immutable)\', details VARCHAR(255) NOT NULL, contact_id INT NOT NULL, create_invoice TINYINT(1) NOT NULL, UNIQUE INDEX uniq_furious_invoice_milestone_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_invoice_milestone');
}
}