I wonder what the best way is to add a new data type to Liquibase. Lets say that in the changelog XML I have columns of type DECIMAL, for Oracle these must be converted to NUMBER. I created a new class extending OracleTypeConverter overriding the getDataType(String, Boolean) method. In case I need to change a datatype for one of the supported types I override the getXXXType() method.
The class is pushed into Liquibase using the ServiceLocator.addPackageToScan(String) method. When the changelog is parsed and processed Liquibase uses my class instead of the original OracleTypeConvertor.
Is this the intended approach to extend datatypes?