<?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 Version20230801053731 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 affboss_affjuniors ADD id INT AUTO_INCREMENT NOT NULL, ADD reward DOUBLE PRECISION DEFAULT NULL, DROP PRIMARY KEY, ADD PRIMARY KEY (id)');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE affboss_affjuniors MODIFY id INT NOT NULL');
$this->addSql('DROP INDEX `PRIMARY` ON affboss_affjuniors');
$this->addSql('ALTER TABLE affboss_affjuniors DROP id, DROP reward');
$this->addSql('ALTER TABLE affboss_affjuniors ADD PRIMARY KEY (user_source, user_target)');
}
}