<?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 Version20220919183154 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 trip (id INT AUTO_INCREMENT NOT NULL, name VARCHAR(255) NOT NULL, league VARCHAR(255) NOT NULL, team1 VARCHAR(255) NOT NULL, team2 VARCHAR(255) NOT NULL, ticket_pool VARCHAR(255) NOT NULL, price INT NOT NULL, people_per_room INT NOT NULL, transport VARCHAR(255) NOT NULL, hotel_name VARCHAR(255) NOT NULL, hotel_country VARCHAR(255) NOT NULL, hotel_region VARCHAR(255) NOT NULL, hotel_city VARCHAR(255) NOT NULL, place VARCHAR(255) NOT NULL, match_date DATE NOT NULL, package_advance INT NOT NULL, package_total_price INT NOT NULL, package_description LONGTEXT NOT NULL, airport_connections VARCHAR(255) NOT NULL, is_active TINYINT(1) NOT 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 trip');
}
}