<?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 Version20240129074653 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 bildirimler DROP FOREIGN KEY FK_42DD4FF66D16AAB8');
$this->addSql('DROP INDEX IDX_42DD4FF66D16AAB8 ON bildirimler');
$this->addSql('ALTER TABLE bildirimler CHANGE kullanşici_id kullanici_id INT NOT NULL');
$this->addSql('ALTER TABLE bildirimler ADD CONSTRAINT FK_42DD4FF6356306AF FOREIGN KEY (kullanici_id) REFERENCES user (id)');
$this->addSql('CREATE INDEX IDX_42DD4FF6356306AF ON bildirimler (kullanici_id)');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE bildirimler DROP FOREIGN KEY FK_42DD4FF6356306AF');
$this->addSql('DROP INDEX IDX_42DD4FF6356306AF ON bildirimler');
$this->addSql('ALTER TABLE bildirimler CHANGE kullanici_id kullanşici_id INT NOT NULL');
$this->addSql('ALTER TABLE bildirimler ADD CONSTRAINT FK_42DD4FF66D16AAB8 FOREIGN KEY (kullanşici_id) REFERENCES user (id)');
$this->addSql('CREATE INDEX IDX_42DD4FF66D16AAB8 ON bildirimler (kullanşici_id)');
}
}