We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The previous ticket is here #3430
Now, it is better but works only for MySQL.
Because MariaDB returns in the EXTRA column for information_schema.COLUMNS not the expected by code value like
DEFAULT_GENERATED on update CURRENT_TIMESTAMP
but this value instead:
on update current_timestamp()
This is just version databases specific. And documentation says that the second option is expected: https://dev.mysql.com/doc/refman/8.2/en/show-columns.html
Create table
CREATE TABLE t1 ( ts TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, dt DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP );
In the MariaDB database. Then try to use diffChangeLog to any empty schema.
Result will have this query:
CREATE TABLE t1 ( ts timestamp DEFAULT NOW() NULL, dt datetime DEFAULT NOW() NULL );
Expected query like the original one:
liquibase-core-4.24.0
MariaDB 10.6
No response
The text was updated successfully, but these errors were encountered:
If I understood correctly, my PR is in the devel. So. I'm closing the issue.
Sorry, something went wrong.
filipelautert
No branches or pull requests
Search first
Description
The previous ticket is here #3430
Now, it is better but works only for MySQL.
Because MariaDB returns in the EXTRA column for information_schema.COLUMNS not the expected by code value like
DEFAULT_GENERATED on update CURRENT_TIMESTAMP
but this value instead:
on update current_timestamp()
This is just version databases specific. And documentation says that the second option is expected: https://dev.mysql.com/doc/refman/8.2/en/show-columns.html
Steps To Reproduce
Create table
In the MariaDB database. Then try to use diffChangeLog to any empty schema.
Result will have this query:
Expected/Desired Behavior
Expected query like the original one:
Liquibase Version
liquibase-core-4.24.0
Database Vendor & Version
MariaDB 10.6
Liquibase Integration
No response
Liquibase Extensions
No response
OS and/or Infrastructure Type/Provider
No response
Additional Context
No response
Are you willing to submit a PR?
The text was updated successfully, but these errors were encountered: