Skip to content

Commit

Permalink
Replaced all usage of catalog with schema.
Browse files Browse the repository at this point in the history
Catalog was used by mistake.
Spring Data JDBC has no support for multiple catalogs, only for multiple schema.

Closes #1729
  • Loading branch information
schauder committed Jul 16, 2024
1 parent effc162 commit 82c8434
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ private SchemaDiff differenceOf(Database database) throws LiquibaseException {
Tables existingTables = getLiquibaseModel(database);
Stream<? extends RelationalPersistentEntity<?>> entities = mappingContext.getPersistentEntities().stream()
.filter(schemaFilter);
Tables mappedEntities = Tables.from(entities, sqlTypeMapping, database.getDefaultCatalogName(), mappingContext);
Tables mappedEntities = Tables.from(entities, sqlTypeMapping, database.getDefaultSchemaName(), mappingContext);

return SchemaDiff.diff(mappedEntities, existingTables, nameComparator);
}
Expand Down Expand Up @@ -463,7 +463,7 @@ private Tables getLiquibaseModel(Database targetDatabase) throws LiquibaseExcept
continue;
}

Table tableModel = new Table(table.getSchema().getCatalogName(), table.getName());
Table tableModel = new Table(table.getSchema().getName(), table.getName());

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

Expand Down

0 comments on commit 82c8434

Please sign in to comment.