<?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 Version20260427144407 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 bike_log CHANGE distance_amount distance_amount NUMERIC(10, 2) DEFAULT \'0\' NOT NULL');
$this->addSql('ALTER TABLE run_log CHANGE distance_amount distance_amount NUMERIC(10, 2) DEFAULT \'0\' NOT NULL');
$this->addSql('ALTER TABLE teamplay_challenge ADD kinestex_amount INT DEFAULT NULL, ADD kinestex_points_low INT DEFAULT NULL, ADD kinestex_points_medium INT DEFAULT NULL, ADD kinestex_points_high INT DEFAULT NULL');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE run_log CHANGE distance_amount distance_amount NUMERIC(10, 2) DEFAULT \'0.00\' NOT NULL');
$this->addSql('ALTER TABLE bike_log CHANGE distance_amount distance_amount NUMERIC(10, 2) DEFAULT \'0.00\' NOT NULL');
$this->addSql('ALTER TABLE teamplay_challenge DROP kinestex_amount, DROP kinestex_points_low, DROP kinestex_points_medium, DROP kinestex_points_high');
}
}