migrations/Version20210710141144.php line 1
<?phpdeclare(strict_types=1);namespace DoctrineMigrations;use Doctrine\DBAL\Schema\Schema;use Doctrine\Migrations\AbstractMigration;/*** Auto-generated Migration: Please modify to your needs!*/final class Version20210710141144 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 tennis_bookings (id INT AUTO_INCREMENT NOT NULL, venue_id INT NOT NULL, date DATETIME NOT NULL, cost DOUBLE PRECISION DEFAULT NULL, INDEX IDX_E250CF4940A73EBA (venue_id), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');$this->addSql('ALTER TABLE tennis_bookings ADD CONSTRAINT FK_E250CF4940A73EBA FOREIGN KEY (venue_id) REFERENCES tennis_venues (id)');}public function down(Schema $schema): void{// this down() migration is auto-generated, please modify it to your needs$this->addSql('DROP TABLE tennis_bookings');}}