Skip to content

Commit b0dde42

Browse files
author
Dorazil
committed
Oprava databazoveho mappingu
1 parent 174bb50 commit b0dde42

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace Migrations;
6+
7+
use Doctrine\DBAL\Schema\Schema;
8+
use Doctrine\Migrations\AbstractMigration;
9+
10+
/**
11+
* Auto-generated Migration: Please modify to your needs!
12+
*/
13+
final class Version20250915150543 extends AbstractMigration
14+
{
15+
public function getDescription(): string
16+
{
17+
return 'Fix doctrine mapping';
18+
}
19+
20+
public function up(Schema $schema): void
21+
{
22+
// this up() migration is auto-generated, please modify it to your needs
23+
$this->addSql('ALTER TABLE ac_cashbook CHANGE note note LONGTEXT NOT NULL');
24+
$this->addSql('ALTER TABLE log CHANGE description description LONGTEXT NOT NULL');
25+
}
26+
27+
public function down(Schema $schema): void
28+
{
29+
// this down() migration is auto-generated, please modify it to your needs
30+
$this->addSql('ALTER TABLE ac_cashbook CHANGE note note MEDIUMTEXT NOT NULL');
31+
$this->addSql('ALTER TABLE log CHANGE description description MEDIUMTEXT NOT NULL');
32+
}
33+
}

0 commit comments

Comments
 (0)