Files
pf2e-builder/migrations/Version20241211060919.php
T
2025-03-26 19:12:04 +04:00

33 lines
1.0 KiB
PHP

<?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 Version20241211060919 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('CREATE TABLE ancestry (id VARCHAR(255) NOT NULL, name VARCHAR(255) NOT NULL, rarity INT NOT NULL, type VARCHAR(255) NOT NULL, attribute JSON DEFAULT NULL, attribute_flaw JSON DEFAULT NULL, hp_raw INT DEFAULT NULL, image JSON DEFAULT NULL, size JSON NOT NULL, speed VARCHAR(255) NOT NULL, PRIMARY KEY(id))');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('CREATE SCHEMA public');
$this->addSql('DROP TABLE ancestry');
}
}