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

createTable/column is not behaving the same as addColumn #71

Open
bassmartin opened this issue Apr 29, 2016 · 6 comments
Open

createTable/column is not behaving the same as addColumn #71

bassmartin opened this issue Apr 29, 2016 · 6 comments

Comments

@bassmartin
Copy link

When there a table creation written by the plugin createTable/column :
java.lang.Integer = type: "INT"
org.joda.time.LocalDateTime = type: "timestamp" (my dialect is not taken into account, it should be timestamptz)

When there is a column added written by the plugin addColumn :
java.lang.Integer = type: "int4"
org.joda.time.LocalDateTime = type: "timestamptz"

The schema is not consistent.

@jameskleeh
Copy link
Contributor

@bassmartin Can you provide a sample project?

@bassmartin
Copy link
Author

@jameskleeh
Copy link
Contributor

jameskleeh commented Jul 18, 2016

Essentially the issue is here: https://github.com/liquibase/liquibase/blob/91a4e47bfe278e2ac17d1a8cca932554547fc5e7/liquibase-core/src/main/java/liquibase/datatype/core/DateTimeType.java#L144

The database is GormDatabase so it doesn't match any that are checked. The originalDefinition is timestamptz and the getName() resolves to timestamp.

@jameskleeh
Copy link
Contributor

@nvoxland
Copy link

The MissingColumnChangeGenerator should use the same logic as MissingTableChangeGenerator

@jameskleeh
Copy link
Contributor

@nvoxland Is there an issue for this in your system anywhere?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants