<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
final class Version20251123182402 extends AbstractMigration
{
public function getDescription(): string
{
return 'Create experience_point_level table';
}
public function up(Schema $schema): void
{
// Create mybiz_experience_point_level table
$this->addSql('CREATE TABLE mybiz_experience_point_level (
id INT AUTO_INCREMENT NOT NULL,
level INT NOT NULL,
xp INT NOT NULL,
badge_name VARCHAR(255) NOT NULL,
PRIMARY KEY(id)
) DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB');
}
public function down(Schema $schema): void
{
// Drop table
$this->addSql('DROP TABLE mybiz_experience_point_level');
}
}