Skip to content

Commit 82c8434

Browse files
committed
Replaced all usage of catalog with schema.
Catalog was used by mistake. Spring Data JDBC has no support for multiple catalogs, only for multiple schema. Closes #1729
1 parent effc162 commit 82c8434

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spring-data-jdbc/src/main/java/org/springframework/data/jdbc/core/mapping/schema/LiquibaseChangeSetWriter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ private SchemaDiff differenceOf(Database database) throws LiquibaseException {
337337
Tables existingTables = getLiquibaseModel(database);
338338
Stream<? extends RelationalPersistentEntity<?>> entities = mappingContext.getPersistentEntities().stream()
339339
.filter(schemaFilter);
340-
Tables mappedEntities = Tables.from(entities, sqlTypeMapping, database.getDefaultCatalogName(), mappingContext);
340+
Tables mappedEntities = Tables.from(entities, sqlTypeMapping, database.getDefaultSchemaName(), mappingContext);
341341

342342
return SchemaDiff.diff(mappedEntities, existingTables, nameComparator);
343343
}
@@ -463,7 +463,7 @@ private Tables getLiquibaseModel(Database targetDatabase) throws LiquibaseExcept
463463
continue;
464464
}
465465

466-
Table tableModel = new Table(table.getSchema().getCatalogName(), table.getName());
466+
Table tableModel = new Table(table.getSchema().getName(), table.getName());
467467

468468
List<liquibase.structure.core.Column> columns = table.getColumns();
469469

0 commit comments

Comments
 (0)