<?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 Version20230118084448 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('ALTER TABLE users ADD status_intern_id INT DEFAULT NULL');
$this->addSql('ALTER TABLE users ADD CONSTRAINT FK_1483A5E9DAC854F5 FOREIGN KEY (status_intern_id) REFERENCES user_status_intern (id)');
$this->addSql('CREATE INDEX IDX_1483A5E9DAC854F5 ON users (status_intern_id)');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE users DROP FOREIGN KEY FK_1483A5E9DAC854F5');
$this->addSql('DROP INDEX IDX_1483A5E9DAC854F5 ON users');
$this->addSql('ALTER TABLE users DROP status_intern_id');
}
}