You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
1.5 KiB
PHP

<?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 Version20250530165852 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(<<<'SQL'
CREATE UNIQUE INDEX UNIQ_1505DF845E237E06 ON machine (name)
SQL);
$this->addSql(<<<'SQL'
CREATE UNIQUE INDEX UNIQ_7CBE75955E237E06 ON material (name)
SQL);
$this->addSql(<<<'SQL'
CREATE UNIQUE INDEX UNIQ_D8B63A1C5E237E06 ON material_type (name)
SQL);
$this->addSql(<<<'SQL'
CREATE UNIQUE INDEX UNIQ_DA88B1375E237E06 ON recipe (name)
SQL);
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql(<<<'SQL'
DROP INDEX UNIQ_1505DF845E237E06 ON machine
SQL);
$this->addSql(<<<'SQL'
DROP INDEX UNIQ_7CBE75955E237E06 ON material
SQL);
$this->addSql(<<<'SQL'
DROP INDEX UNIQ_D8B63A1C5E237E06 ON material_type
SQL);
$this->addSql(<<<'SQL'
DROP INDEX UNIQ_DA88B1375E237E06 ON recipe
SQL);
}
}