<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
final class Version20230627105043 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
$this->addSql('CREATE TABLE `list_mobile_app_versions` (id INT AUTO_INCREMENT NOT NULL, operating_system VARCHAR(255) NOT NULL, external_code VARCHAR(255) DEFAULT NULL, version VARCHAR(50) NOT NULL, is_mandatory_update TINYINT(1) DEFAULT 0 NOT NULL, description LONGTEXT DEFAULT NULL, created_at DATETIME NOT NULL COMMENT \'(DC2Type:datetime_immutable)\', updated_at DATETIME NOT NULL COMMENT \'(DC2Type:datetime_immutable)\', UNIQUE INDEX UNIQ_58D8A881E20A50B4 (external_code), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
$this->addSql('INSERT INTO `list_mobile_app_versions` (`operating_system`, `version`, `is_mandatory_update`, `created_at`, `updated_at`) VALUES (\'Android\', \'13\', false, \''.(new \DateTimeImmutable())->format('Y-m-d H:i:s').'\', \''.(new \DateTimeImmutable())->format('Y-m-d H:i:s').'\')');
$this->addSql('INSERT INTO `list_mobile_app_versions` (`operating_system`, `version`, `is_mandatory_update`, `created_at`, `updated_at`) VALUES (\'iOS\', \'16.5.1\', false, \''.(new \DateTimeImmutable())->format('Y-m-d H:i:s').'\', \''.(new \DateTimeImmutable())->format('Y-m-d H:i:s').'\')');
}
public function down(Schema $schema): void
{
$this->addSql('DROP TABLE `list_mobile_app_versions`');
}
}