Skip to content

Commit cf99152

Browse files
committed
fix namings
1 parent 1c0a75d commit cf99152

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/chat/src/Bridge/Doctrine/DoctrineDbalMessageStore.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ public function setup(array $options = []): void
5454
}
5555

5656
$schemaManager = $this->dbalConnection->createSchemaManager();
57-
$currentSchema = $schemaManager->introspectSchema();
57+
$schema = $schemaManager->introspectSchema();
5858

59-
if ($currentSchema->hasTable($this->tableName)) {
59+
if ($schema->hasTable($this->tableName)) {
6060
return;
6161
}
6262

@@ -67,7 +67,7 @@ public function setup(array $options = []): void
6767
$comparator = $schemaManager->createComparator();
6868
}
6969

70-
$migrations = $this->dbalConnection->getDatabasePlatform()->getAlterSchemaSQL($comparator->compareSchemas($currentSchema, $this->defineTableSchema($currentSchema)));
70+
$migrations = $this->dbalConnection->getDatabasePlatform()->getAlterSchemaSQL($comparator->compareSchemas($schema, $this->defineTableSchema($schema)));
7171

7272
foreach ($migrations as $sql) {
7373
$this->dbalConnection->executeQuery($sql);

0 commit comments

Comments
 (0)