diff --git a/src/main/resources/liquibase/harness/change/expectedSnapshot/mariadb/addDefaultValueBoolean.json b/src/main/resources/liquibase/harness/change/expectedSnapshot/mariadb/addDefaultValueBoolean.json index 280c8908f..29c86c309 100644 --- a/src/main/resources/liquibase/harness/change/expectedSnapshot/mariadb/addDefaultValueBoolean.json +++ b/src/main/resources/liquibase/harness/change/expectedSnapshot/mariadb/addDefaultValueBoolean.json @@ -4,11 +4,11 @@ "liquibase.structure.core.Column": [ { "column": { - "defaultValue": "1\\!\\{liquibase.statement.DatabaseFunction\\}", + "defaultValue": "1\\!\\{java.lang.Integer\\}", "name": "booleanColumn", "nullable": true, "type": { - "typeName": "BOOLEAN" + "typeName": "TINYINT" } } } diff --git a/src/main/resources/liquibase/harness/change/expectedSnapshot/mariadb/addNotNullConstraintBitBoolean.json b/src/main/resources/liquibase/harness/change/expectedSnapshot/mariadb/addNotNullConstraintBitBoolean.json index 0897398e8..c31aa9cc4 100644 --- a/src/main/resources/liquibase/harness/change/expectedSnapshot/mariadb/addNotNullConstraintBitBoolean.json +++ b/src/main/resources/liquibase/harness/change/expectedSnapshot/mariadb/addNotNullConstraintBitBoolean.json @@ -16,7 +16,7 @@ "name": "boolean_col", "nullable": false, "type": { - "typeName": "BOOLEAN" + "typeName": "TINYINT" } } } diff --git a/src/main/resources/liquibase/harness/change/expectedSnapshot/mysql/addDefaultValueBoolean.json b/src/main/resources/liquibase/harness/change/expectedSnapshot/mysql/addDefaultValueBoolean.json index 0074d0f67..29c86c309 100644 --- a/src/main/resources/liquibase/harness/change/expectedSnapshot/mysql/addDefaultValueBoolean.json +++ b/src/main/resources/liquibase/harness/change/expectedSnapshot/mysql/addDefaultValueBoolean.json @@ -8,7 +8,7 @@ "name": "booleanColumn", "nullable": true, "type": { - "typeName": "BIT" + "typeName": "TINYINT" } } } diff --git a/src/main/resources/liquibase/harness/change/expectedSnapshot/mysql/addNotNullConstraintBitBoolean.json b/src/main/resources/liquibase/harness/change/expectedSnapshot/mysql/addNotNullConstraintBitBoolean.json index 2799536b9..c31aa9cc4 100644 --- a/src/main/resources/liquibase/harness/change/expectedSnapshot/mysql/addNotNullConstraintBitBoolean.json +++ b/src/main/resources/liquibase/harness/change/expectedSnapshot/mysql/addNotNullConstraintBitBoolean.json @@ -16,7 +16,7 @@ "name": "boolean_col", "nullable": false, "type": { - "typeName": "BIT" + "typeName": "TINYINT" } } } diff --git a/src/main/resources/liquibase/harness/change/expectedSnapshot/mysql/datatypes.numeric.json b/src/main/resources/liquibase/harness/change/expectedSnapshot/mysql/datatypes.numeric.json index 56b927e1d..e5069e5b8 100644 --- a/src/main/resources/liquibase/harness/change/expectedSnapshot/mysql/datatypes.numeric.json +++ b/src/main/resources/liquibase/harness/change/expectedSnapshot/mysql/datatypes.numeric.json @@ -55,7 +55,7 @@ "column": { "name": "bool", "type": { - "typeName": "BIT" + "typeName": "TINYINT" } } }, @@ -63,7 +63,7 @@ "column": { "name": "boolean", "type": { - "typeName": "BIT" + "typeName": "TINYINT" } } }, diff --git a/src/main/resources/liquibase/harness/change/expectedSnapshot/percona-xtradb-cluster/addDefaultValueBoolean.json b/src/main/resources/liquibase/harness/change/expectedSnapshot/percona-xtradb-cluster/addDefaultValueBoolean.json index 0074d0f67..29c86c309 100644 --- a/src/main/resources/liquibase/harness/change/expectedSnapshot/percona-xtradb-cluster/addDefaultValueBoolean.json +++ b/src/main/resources/liquibase/harness/change/expectedSnapshot/percona-xtradb-cluster/addDefaultValueBoolean.json @@ -8,7 +8,7 @@ "name": "booleanColumn", "nullable": true, "type": { - "typeName": "BIT" + "typeName": "TINYINT" } } } diff --git a/src/main/resources/liquibase/harness/change/expectedSnapshot/percona-xtradb-cluster/datatypes.numeric.json b/src/main/resources/liquibase/harness/change/expectedSnapshot/percona-xtradb-cluster/datatypes.numeric.json new file mode 100644 index 000000000..b779edde3 --- /dev/null +++ b/src/main/resources/liquibase/harness/change/expectedSnapshot/percona-xtradb-cluster/datatypes.numeric.json @@ -0,0 +1,173 @@ +{ + "snapshot": { + "objects": { + "liquibase.structure.core.Table": [ + { + "table": { + "name": "datatypes.numeric_test_table" + } + } + ], + "liquibase.structure.core.Column": [ + { + "column": { + "name": "bit", + "type": { + "typeName": "BIT" + } + } + }, + { + "column": { + "name": "bit1", + "type": { + "columnSize": "1\\!\\{java.lang.Integer\\}", + "typeName": "BIT" + } + } + }, + { + "column": { + "name": "bit64", + "type": { + "columnSize": "64\\!\\{java.lang.Integer\\}", + "typeName": "BIT" + } + } + }, + { + "column": { + "name": "tinyint", + "type": { + "typeName": "TINYINT" + } + } + }, + { + "column": { + "name": "tinyint.unsigned", + "type": { + "typeName": "TINYINT UNSIGNED" + } + } + }, + { + "column": { + "name": "bool", + "type": { + "typeName": "TINYINT" + } + } + }, + { + "column": { + "name": "boolean", + "type": { + "typeName": "TINYINT" + } + } + }, + { + "column": { + "name": "smallint", + "type": { + "typeName": "SMALLINT" + } + } + }, + { + "column": { + "name": "smallint.unsigned", + "type": { + "typeName": "SMALLINT UNSIGNED" + } + } + }, + { + "column": { + "name": "mediumint", + "type": { + "typeName": "MEDIUMINT" + } + } + }, + { + "column": { + "name": "mediumint.unsigned", + "type": { + "typeName": "MEDIUMINT UNSIGNED" + } + } + }, + { + "column": { + "name": "int", + "type": { + "typeName": "INT" + } + } + }, + { + "column": { + "name": "int.unsigned", + "type": { + "typeName": "INT UNSIGNED" + } + } + }, + { + "column": { + "name": "bigint", + "type": { + "typeName": "BIGINT" + } + } + }, + { + "column": { + "name": "bigint.unsigned", + "type": { + "typeName": "BIGINT UNSIGNED" + } + } + }, + { + "column": { + "name": "decimal", + "type": { + "typeName": "DECIMAL" + } + } + }, + { + "column": { + "name": "decimal.max", + "type": { + "columnSize": "65\\!\\{java.lang.Integer\\}", + "decimalDigits": "30\\!\\{java.lang.Integer\\}", + "typeName": "DECIMAL" + } + } + }, + { + "column": { + "name": "float", + "type": { + "typeName": "FLOAT" + } + } + }, + { + "column": { + "name": "float.10.10", + "type": { + "columnSize": "10\\!\\{java.lang.Integer\\}", + "decimalDigits": "10\\!\\{java.lang.Integer\\}", + "typeName": "FLOAT" + } + } + } + ] + } + } +} \ No newline at end of file