Skip to content

Commit

Permalink
DAT-18730 (#257)
Browse files Browse the repository at this point in the history
Make sure the database is Redshift
  • Loading branch information
wwillard7800 authored Oct 1, 2024
1 parent caf18b3 commit 1c274eb
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,15 @@
import liquibase.snapshot.InvalidExampleException;
import liquibase.snapshot.SnapshotGenerator;
import liquibase.structure.DatabaseObject;
import liquibase.ext.redshift.database.RedshiftDatabase;

public class ForeignKeySnapshotGenerator extends liquibase.snapshot.jvm.ForeignKeySnapshotGenerator {
@Override
public int getPriority(Class<? extends DatabaseObject> objectType, Database database) {
return PRIORITY_DATABASE;
if (database instanceof RedshiftDatabase) {
return PRIORITY_DATABASE;
}
return PRIORITY_NONE;
}

@Override
Expand Down

0 comments on commit 1c274eb

Please sign in to comment.