Grails JIRA

  • Log In Access more options
    • Online Help
    • GreenHopper Help
    • Agile Answers
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What’s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Agile
Database Migration Plugin
  • Database Migration Plugin
  • GPDATABASEMIGRATION-68

the nullable:true not work

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Cannot Reproduce
  • Affects Version/s: None
  • Fix Version/s: None
  • Labels:
    None
  • Environment:
    grails 2.0 ,JDK 1.6 ,Lion,Mysql

Description

class {
  Date start

   static constraints = {
       start nullable:true
   }
}

use dbm-generate-gorm-changelog to generate xml like this:

<column name="start" type="timestamp"/>

when I deployed with mysql,there is `start` timestamp NOT NULL

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Ford Guo added a comment - 20/Dec/11 2:10 AM

currently I can use

<dropNotNullConstraint tableName="xxx" columnName="xxx"/>

to fixes

Show
Ford Guo added a comment - 20/Dec/11 2:10 AM currently I can use <dropNotNullConstraint tableName="xxx" columnName="xxx"/> to fixes
Hide
Permalink
Burt Beckwith added a comment - 02/Jan/13 1:39 AM

The XML for a not-null column would include a child element <constraints nullable="false"/> so I don't see how the plugin would have created a not-null column given that XML.

Show
Burt Beckwith added a comment - 02/Jan/13 1:39 AM The XML for a not-null column would include a child element <constraints nullable="false"/> so I don't see how the plugin would have created a not-null column given that XML.

People

  • Assignee:
    Burt Beckwith
    Reporter:
    Ford Guo
Vote (1)
Watch (1)

Dates

  • Created:
    20/Dec/11 2:09 AM
    Updated:
    02/Jan/13 1:39 AM
    Resolved:
    02/Jan/13 1:39 AM

Agile

  • View on Board
  • Atlassian JIRA (v5.2.1#813-sha1:277a546)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Grails project. Try JIRA - bug tracking software for your team.