<?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 Version20220323141333 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 user_activity ADD last_score INT DEFAULT NULL, ADD last_score_date DATETIME DEFAULT NULL, ADD best_score INT DEFAULT NULL, ADD best_score_date DATETIME DEFAULT NULL, CHANGE created created DATETIME DEFAULT NULL, CHANGE updated updated DATETIME DEFAULT NULL');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE user_activity ADD objectExercise_id INT DEFAULT NULL, DROP object_exercise_id, DROP last_score, DROP last_score_date, DROP best_score, DROP best_score_date, CHANGE id id INT UNSIGNED AUTO_INCREMENT NOT NULL, CHANGE video_id video_id INT DEFAULT NULL, CHANGE user_id user_id INT NOT NULL, CHANGE activity_detail activity_detail LONGTEXT DEFAULT NULL COLLATE `utf8_unicode_ci`, CHANGE abstractWorkListTable_id abstractWorkListTable_id INT DEFAULT NULL, CHANGE created created DATETIME DEFAULT \'0000-00-00 00:00:00\' NOT NULL, CHANGE updated updated DATETIME DEFAULT \'0000-00-00 00:00:00\' NOT NULL, CHANGE discr discr VARCHAR(255) NOT NULL COLLATE `utf8_unicode_ci`');
}
}