<?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 Version20220608142506 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 room (id INT AUTO_INCREMENT NOT NULL, street VARCHAR(255) NOT NULL, str_nomber VARCHAR(50) NOT NULL, floor VARCHAR(10) NOT NULL, door VARCHAR(50) NOT NULL, city VARCHAR(255) NOT NULL, postal_code VARCHAR(50) DEFAULT NULL, country VARCHAR(255) NOT NULL, total_rooms INT NOT NULL, total_bathrooms INT NOT NULL, lift INT NOT NULL, door_man INT NOT NULL, room_size VARCHAR(255) NOT NULL, window_type INT NOT NULL, inner_outer_position INT NOT NULL, title VARCHAR(255) NOT NULL, url VARCHAR(500) NOT NULL, description VARCHAR(10000) NOT NULL, price INT NOT NULL, deposit INT 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 room');
}
}