<?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 Version20240527162814 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 warehouse_setting (id INT AUTO_INCREMENT NOT NULL, object_class VARCHAR(255) DEFAULT NULL, foreign_key INT DEFAULT NULL, warehouse_type VARCHAR(255) DEFAULT NULL, setting_key VARCHAR(255) DEFAULT NULL, value VARCHAR(255) DEFAULT NULL, UNIQUE INDEX nameUnique (object_class, foreign_key, warehouse_type, setting_key), 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 warehouse_setting');
}
}