Skip to content

Commit 8173516

Browse files
committed
Column starting with a digit (#184): Add test
1 parent 1b91945 commit 8173516

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/TDBMAbstractServiceTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,9 @@ private static function initSchema(Connection $connection): void
285285
->column('login')->string(255)
286286
->column('password')->string(255)->null()
287287
->column('status')->string(10)->null()->default(null)
288-
->column('country_id')->references('country');
288+
->column('country_id')->references('country')
289+
// Used to test generation for a column that starts with a digit
290+
->then()->column('3d_view')->boolean()->default(true);
289291

290292
$db->table('rights')
291293
->column('label')->string(255)->primaryKey()->comment('Non autoincrementable primary key');

0 commit comments

Comments
 (0)