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