How to let "timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP" on mysql work in liquibase?


I found a topic below:

But when I try it, it does not work. I looked at the code in function AbstractTypeConverter::getDataType() like below. It means datetime will always be used if I use a type including other characters except timestamp.

        } else if (dataTypeName.toUpperCase().contains(“TIMESTAMP”)) {
            returnTypeName = getDateTimeType();

Is it a designed behaviour?

David Li