diff --git a/src/main/java/com/citusdata/migration/datamodel/TableSchema.java b/src/main/java/com/citusdata/migration/datamodel/TableSchema.java index a097ddc..99f4bf3 100644 --- a/src/main/java/com/citusdata/migration/datamodel/TableSchema.java +++ b/src/main/java/com/citusdata/migration/datamodel/TableSchema.java @@ -24,11 +24,11 @@ public class TableSchema { private List tableIndexes; public TableSchema(String tableName) { - this(tableName, null); + this(tableName.replace("-","_"), null); } public TableSchema(String tableName, String schemaName) { - this.tableName = tableName; + this.tableName = tableName.replace("-","_"); this.schemaName = schemaName; this.columns = new LinkedHashMap<>(); this.primaryKey = null;