Hi,
I’m using Oracle database and Liquibase 2.0.5.
It seems there is no way to set pseudo column USER as default value for a VARCHAR2 type column.
The default value always ends up as string ‘USER’.
I have tried defaultValueDate as some of the previous posts suggests, but that produces
java.lang.ClassCastException.
I managed to get it working by using the following modifySql element:
But is that really the only possible way?
Regards,
Kari
-
Learn
-
Resources
-
Free Tools
OSS Risk Scanner Database DevOps Risk AssessmentCheat Sheets
Snowflake + Liquibase Databricks + Liquibase -
eBooks
6 Liquibase Community Risks & How to Avoid Guide: SOC 2 Compliance at the Database Layer Guide: Quantify the Value of Liquibase Secure -
Comparison Guides
Liquibase vs. Flyway Liquibase vs. Bytebase Liquibase Community vs Liquibase Secure
-
- Quickstart
- Get Started
- Documentation
- University
-
Resources
- Connect
- Contribute
- Join
- Blog