diff --git a/src/main/java/liquibase/ext/databricks/datatype/StringDatatypeDatabricks.java b/src/main/java/liquibase/ext/databricks/datatype/StringDatatypeDatabricks.java index 672b746a..eb06b5b4 100644 --- a/src/main/java/liquibase/ext/databricks/datatype/StringDatatypeDatabricks.java +++ b/src/main/java/liquibase/ext/databricks/datatype/StringDatatypeDatabricks.java @@ -27,19 +27,10 @@ public boolean supports(Database database) { public DatabaseDataType toDatabaseDataType(Database database) { if (database instanceof DatabricksDatabase) { - DatabaseDataType type = new DatabaseDataType("STRING", this.getParameters()); - if (this.getParameters().length == 0) { - type.setType("STRING"); - } else { - String firstParameter = String.valueOf(this.getParameters()[0]); - int stringSize = Integer.parseInt(firstParameter); - if (stringSize == 65535) { - type.setType("STRING"); - } - else { - type.setType("STRING"); - } - } + DatabaseDataType type = new DatabaseDataType("STRING"); + + type.setType("STRING"); + return type; } else { return super.toDatabaseDataType(database); diff --git a/src/test/resources/liquibase/harness/generateChangelog/expectedChangeLog/databricks/createTable.sql b/src/test/resources/liquibase/harness/generateChangelog/expectedChangeLog/databricks/createTable.sql index 274e70fa..67577aef 100644 --- a/src/test/resources/liquibase/harness/generateChangelog/expectedChangeLog/databricks/createTable.sql +++ b/src/test/resources/liquibase/harness/generateChangelog/expectedChangeLog/databricks/createTable.sql @@ -1,3 +1,3 @@ -- liquibase formatted sql -CREATE TABLE test_table_xml (test_column INT(10)); \ No newline at end of file +CREATE TABLE test_table_xml (test_column INT); \ No newline at end of file