File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments