<?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 Version20220202205655 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 activity CHANGE name name VARCHAR(255) DEFAULT NULL, CHANGE type type VARCHAR(255) DEFAULT NULL, CHANGE start_time start_time DATETIME DEFAULT NULL, CHANGE duration duration 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 activity CHANGE name name VARCHAR(255) NOT NULL COLLATE `utf8_unicode_ci`, CHANGE type type VARCHAR(255) NOT NULL COLLATE `utf8_unicode_ci`, CHANGE start_time start_time DATETIME NOT NULL, CHANGE duration duration INT NOT NULL');
$this->addSql('ALTER TABLE messenger_messages CHANGE body body LONGTEXT NOT NULL COLLATE `utf8_unicode_ci`, CHANGE headers headers LONGTEXT NOT NULL COLLATE `utf8_unicode_ci`, CHANGE queue_name queue_name VARCHAR(255) NOT NULL COLLATE `utf8_unicode_ci`');
$this->addSql('ALTER TABLE social_token CHANGE type type VARCHAR(255) NOT NULL COLLATE `utf8_unicode_ci`, CHANGE token_type token_type VARCHAR(255) NOT NULL COLLATE `utf8_unicode_ci`, CHANGE refresh_token refresh_token LONGTEXT NOT NULL COLLATE `utf8_unicode_ci`, CHANGE access_token access_token LONGTEXT NOT NULL COLLATE `utf8_unicode_ci`, CHANGE social_user_id social_user_id VARCHAR(30) NOT NULL COLLATE `utf8_unicode_ci`, CHANGE scope scope VARCHAR(255) DEFAULT NULL COLLATE `utf8_unicode_ci`');
$this->addSql('ALTER TABLE tracking_data CHANGE type type VARCHAR(15) NOT NULL COLLATE `utf8_unicode_ci`, CHANGE payload payload MEDIUMTEXT NOT NULL COLLATE `utf8_unicode_ci`');
$this->addSql('ALTER TABLE user CHANGE email email VARCHAR(180) NOT NULL COLLATE `utf8_unicode_ci`, CHANGE first_name first_name VARCHAR(255) DEFAULT NULL COLLATE `utf8_unicode_ci`, CHANGE password password VARCHAR(255) NOT NULL COLLATE `utf8_unicode_ci`, CHANGE last_name last_name VARCHAR(255) NOT NULL COLLATE `utf8_unicode_ci`, CHANGE user_hash user_hash VARCHAR(255) DEFAULT NULL COLLATE `utf8_unicode_ci`');
$this->addSql('ALTER TABLE weights CHANGE social_source social_source VARCHAR(255) NOT NULL COLLATE `utf8_unicode_ci`');
}
}