migrations/Version20220921124719.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 Version20220921124719 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 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');
  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 invoice');
  24.     }
  25. }