<?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 Version20220921124719 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 invoice (id INT AUTO_INCREMENT NOT NULL, inv_num VARCHAR(255) DEFAULT NULL, inv_date DATETIME NOT NULL, inv_type VARCHAR(255) DEFAULT NULL, inv_ref VARCHAR(255) DEFAULT NULL, inv_credit_note VARCHAR(255) DEFAULT NULL, contract_number VARCHAR(30) DEFAULT NULL, account VARCHAR(255) DEFAULT NULL, social_reason VARCHAR(255) DEFAULT NULL, amendment VARCHAR(255) DEFAULT NULL, immatriculation VARCHAR(255) NOT NULL, modele VARCHAR(255) DEFAULT NULL, driver VARCHAR(255) DEFAULT NULL, gender VARCHAR(255) DEFAULT NULL, prestation_code VARCHAR(255) DEFAULT NULL, prestation_label VARCHAR(255) DEFAULT NULL, amount_ht DOUBLE PRECISION NOT NULL, amount_tva DOUBLE PRECISION DEFAULT NULL, amount_ttc DOUBLE PRECISION DEFAULT NULL, tva_rate DOUBLE PRECISION DEFAULT NULL, currency VARCHAR(255) DEFAULT NULL, start_period DATETIME NOT NULL, end_period DATETIME NOT NULL, due_date DATETIME DEFAULT NULL, inv_payment_method VARCHAR(255) NOT NULL, amendment_ref VARCHAR(255) DEFAULT NULL, structure VARCHAR(255) DEFAULT NULL, deleted_at DATETIME DEFAULT NULL COMMENT \'(DC2Type:deleted_at)\', 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 invoice');
}
}