Skip to content

Commit

Permalink
VariableDateTimePrecisionIntrospectionTest. Shorten table name.
Browse files Browse the repository at this point in the history
Oracle 11g has a maximum identifier length of 30.
  • Loading branch information
cgknx committed Mar 17, 2023
1 parent d2675eb commit 90388b4
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ class VariableDateTimePrecisionIntrospectionTest extends FunctionalTestCase
{
public function testTableIntrospection(): void
{
$tableName = 'test_time_prec_intros';

$platform = $this->connection->getDatabasePlatform();

if (! $platform->supportsVariablePrecisionTime()) {
Expand All @@ -33,7 +35,7 @@ public function testTableIntrospection(): void
$schemaManager = $this->connection->createSchemaManager();
$comparator = $schemaManager->createComparator();

$table = new Table('test_time_precision_introspection');
$table = new Table($tableName);

$doctrineTypes = array_keys(Type::getTypesMap());

Expand All @@ -49,7 +51,7 @@ public function testTableIntrospection(): void

$this->dropAndCreateTable($table);

$onlineTable = $schemaManager->introspectTable('test_time_precision_introspection');
$onlineTable = $schemaManager->introspectTable($tableName);

$diff = $comparator->compareTables($table, $onlineTable);

Expand Down

0 comments on commit 90388b4

Please sign in to comment.