Skip to content

Commit 8c92903

Browse files
committed
Specify the length of VARCHAR columns
Platforms in the MySQL/MariaDB family require that.
1 parent 8616a98 commit 8c92903

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/Doctrine/Tests/ORM/Functional/Ticket/GH12063Test.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ enum GH12063Code: string
6767
class GH12063Association
6868
{
6969
#[Id]
70-
#[Column]
70+
#[Column(length: 3)]
7171
public GH12063Code $code;
7272
}
7373

@@ -80,6 +80,6 @@ class GH12063Entity
8080
public int|null $id = null;
8181

8282
#[ORM\ManyToOne]
83-
#[ORM\JoinColumn(referencedColumnName: 'code')]
83+
#[ORM\JoinColumn(referencedColumnName: 'code', options: ['length' => 3])]
8484
public GH12063Association $association;
8585
}

0 commit comments

Comments
 (0)