apache / apache/grails-core

createTable/column is not behaving the same as addColumn

Open
#14,481 6 comments 0 reactions 0 assignees View on GitHub
relates-to: grails-data-hibernate5 relates-to: grails-hibernate5-dbmigration
Dominant language
Groovy
Stars
2.9k
Forks
975
Avg merge
1d 22h
Merged PRs (30d)
92

Description

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.

Contributor guide

Open the contributing guide

Research direction

Start by comparing the createTable/column and addColumn plugin entry points, focusing on how each maps Integer and LocalDateTime types and applies the database dialect. Reproduce both schema-generation paths and verify that table creation produces the same dialect-aware types as adding the columns.

Written by the indexing model from the issue text.

Assessment

Tech stack
groovy
Domain
databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.