Skip to content

Commit

Permalink
2.58.6 Bug fix following entity / model alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
classaxe committed Aug 29, 2023
1 parent f8e09a0 commit f6ad9cc
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Entity/LogSession.php
Expand Up @@ -49,7 +49,7 @@ class LogSession

/**
* @var string
* @ORM\Column(name="comment", type="string", length=255, nullable=false)
* @ORM\Column(name="comment", type="string", length=255, nullable=true)
*/
private $comment = '';

Expand Down
31 changes: 31 additions & 0 deletions src/Migrations/Version20230829184005.php
@@ -0,0 +1,31 @@
<?php

declare(strict_types=1);

namespace App\Migrations;

use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;

/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20230829184005 extends AbstractMigration
{
public function getDescription() : string
{
return 'Log Sessions comment should be nullable';
}

public function up(Schema $schema) : void
{
// this up() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE log_sessions CHANGE comment comment VARCHAR(255) DEFAULT NULL');
}

public function down(Schema $schema) : void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE log_sessions CHANGE comment comment VARCHAR(255) CHARACTER SET utf8 NOT NULL COLLATE `utf8_general_ci`');
}
}

0 comments on commit f6ad9cc

Please sign in to comment.