Convert SQL data type
ProprietaryWhen migrating between SQL dialects, data types often need to be converted. For example, Oracle's VARCHAR2 can be replaced with Postgres VARCHAR, or NUMBER with NUMERIC. Types are converted in column definitions and in CAST expressions.
org. openrewrite. sql. ConvertDataTypeRequired
The data type to find and replace, case insensitive.
The new data type to use as replacement.
mod run . --recipe= org. openrewrite. sql. ConvertDataType \
-P oldDataType= VARCHAR2 \
-P newDataType= VARCHARInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.