<?php
declare(strict_types=1);
namespace EckinoxCoreMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20210908133930 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 eckinox_logs ADD app_user_id INT DEFAULT NULL');
$this->addSql('ALTER TABLE eckinox_logs ADD CONSTRAINT FK_EFB3A5454A3353D8 FOREIGN KEY (app_user_id) REFERENCES eckinox_app_users (id)');
$this->addSql('CREATE INDEX IDX_EFB3A5454A3353D8 ON eckinox_logs (app_user_id)');
}
public function down(Schema $schema) : void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE eckinox_logs DROP FOREIGN KEY FK_EFB3A5454A3353D8');
$this->addSql('DROP INDEX IDX_EFB3A5454A3353D8 ON eckinox_logs');
$this->addSql('ALTER TABLE eckinox_logs DROP app_user_id');
}
}