migrations/Version20230509133905.php line 1
<?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 Version20230509133905 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 item ADD is_lootable TINYINT(1) DEFAULT NULL, DROP loot_probability');
$this->addSql('ALTER TABLE tile_type ADD lootable LONGTEXT DEFAULT NULL');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE item ADD loot_probability DOUBLE PRECISION NOT NULL, DROP is_lootable');
$this->addSql('ALTER TABLE tile_type DROP lootable');
}
}