<?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 Version20220405122923 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 zone_invoice (id INT AUTO_INCREMENT NOT NULL, date VARCHAR(255) NOT NULL, tablenr VARCHAR(255) NOT NULL, zoneid VARCHAR(255) NOT NULL, total VARCHAR(255) NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('CREATE TABLE zone_invoice_detail (id INT AUTO_INCREMENT NOT NULL, idinvoice VARCHAR(255) NOT NULL, tablenr VARCHAR(255) NOT NULL, idzone VARCHAR(255) NOT NULL, product VARCHAR(255) NOT NULL, qtd VARCHAR(255) NOT NULL, date VARCHAR(255) NOT NULL, price VARCHAR(255) NOT NULL, options VARCHAR(255) DEFAULT NULL, 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 zone_invoice');
$this->addSql('DROP TABLE zone_invoice_detail');
}
}