Skip to content
New issue

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

Include column data type to SetColumnRemarksChange for MySQL support #2129

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -6,6 +6,7 @@
import liquibase.change.core.*;
import liquibase.database.Database;
import liquibase.database.core.MSSQLDatabase;
import liquibase.database.core.MySQLDatabase;
import liquibase.database.core.OracleDatabase;
import liquibase.database.core.PostgresDatabase;
import liquibase.datatype.DataTypeFactory;
Expand Down Expand Up @@ -77,6 +78,9 @@ public Change[] fixChanged(DatabaseObject changedObject, ObjectDifferences diffe
if (control.getIncludeSchema()) {
change.setSchemaName(column.getSchema().getName());
}
if (comparisonDatabase instanceof MySQLDatabase) {
change.setColumnDataType(column.getType().toString());
}
change.setTableName(column.getRelation().getName());
change.setColumnName(column.getName());
change.setRemarks(column.getRemarks());
Expand Down