File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/chat/src/Bridge/Doctrine Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 );
You can’t perform that action at this time.
0 commit comments