<?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 Version20221118183915 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 cal_stats (id INT AUTO_INCREMENT NOT NULL, date DATETIME DEFAULT NULL, total_accommodation INT NOT NULL, total_accommodation_active INT NOT NULL, total_accommodation_disabled INT NOT NULL, total_room INT NOT NULL, total_room_free INT NOT NULL, total_room_occupied INT NOT NULL, total_room_disabled INT NOT NULL, total_room_booking INT NOT NULL, total_room_departure INT NOT NULL, total_room_with_external_link INT NOT NULL, total_users INT NOT NULL, total_users_male INT NOT NULL, total_users_female INT NOT NULL, total_users_age1 INT NOT NULL, total_users_age2 INT NOT NULL, total_users_age3 INT NOT NULL, total_users_age4 INT NOT NULL, total_users_age5 INT NOT NULL, top_jobs JSON NOT NULL, top_nationality JSON 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 cal_stats');
}
}