Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6113029
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T14:48:43+00:00 2026-05-23T14:48:43+00:00

I’m using Grails 1.3.7 + MySQL 5.5 + Liquibase through the database-migration plugin 0.2.1.

  • 0

I’m using Grails 1.3.7 + MySQL 5.5 + Liquibase through the database-migration plugin 0.2.1.

When I’m in my development environment, I have Hibernate configured to use “create-drop” but in my QA environment, I want to use liquibase to create my tables. Here is my environments config:

environments {
    development {
        dataSource {
            configClass = GrailsAnnotationConfiguration.class
            pooled = false
            driverClassName = "com.mysql.jdbc.Driver"
            username = "root"
            password =  ""
            dialect = "org.hibernate.dialect.MySQL5InnoDBDialect"
            dbCreate = "create-drop"
            url = "jdbc:mysql://localhost/dripita_dev"      
        }
    }
    localQa {
        dataSource {
            configClass=GrailsAnnotationConfiguration.class
            pooled=false
            driverClassName="com.mysql.jdbc.Driver"
            username="root"
            password=""
            dialect="org.hibernate.dialect.MySQL5InnoDBDialect"
            url="jdbc:mysql://localhost/dripita_localqa"        
        }
    }
 ...
}

When I bring the app up in dev mode, the database tables are create fine. I do the following to create the changelog:

$ grails dbm-generate-gorm-changelog changelog.groovy

Which looks like this:

changeSet(author: "javidjamae (generated)", id: "1309959832163-2") {
    createTable(tableName: "payment") {
        column(autoIncrement: "true", name: "id", type: "bigint") {
            constraints(nullable: "false", primaryKey: "true", primaryKeyName: "paymentPK")
        }

        column(name: "version", type: "bigint") {
            constraints(nullable: "false")
        }

        column(name: "buyer_id", type: "bigint") {
            constraints(nullable: "false")
        }

        column(name: "buyer_information_id", type: "bigint")

        column(name: "currency", type: "varchar(255)") {
            constraints(nullable: "false")
        }

        column(name: "discount_cart_amount", type: "decimal(19,2)") {
            constraints(nullable: "false")
        }

        column(name: "paypal_transaction_id", type: "varchar(255)")

        column(name: "status", type: "varchar(9)") {
            constraints(nullable: "false")
        }

        column(name: "tax", type: "double precision(19)") {
            constraints(nullable: "false")
        }

        column(name: "transaction_id", type: "varchar(255)")
    }
}

Then I try to create the tables from the changelog:

$ grails -Dgrails.env=localQa dbm-update

But, when I run the dbm-update, I get the following error:

07/06 08:52:41 INFO  [main]: liquibase  - Successfully acquired change log lock
07/06 08:52:42 INFO  [main]: liquibase  - Reading from `DATABASECHANGELOG`
07/06 08:52:42 INFO  [main]: liquibase  - Reading from `DATABASECHANGELOG`
07/06 08:52:42 ERROR [main]: liquibase  - Error executing SQL CREATE TABLE `payment` (`id` BIGINT AUTO_INCREMENT  NOT NULL, `version` BIGINT NOT NULL, `buyer_id` BIGINT NOT NULL, `buyer_information_id` BIGINT, `currency` VARCHAR(255) NOT NULL, `discount_cart_amount` decimal(19,2) NOT NULL, `paypal_transaction_id` VARCHAR(255), `status` VARCHAR(9) NOT NULL, `tax` double precision(19) NOT NULL, `transaction_id` VARCHAR(255), CONSTRAINT `paymentPK` PRIMARY KEY (`id`)) ENGINE=InnoDB
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') NOT NULL, `transaction_id` VARCHAR(255), CONSTRAINT `paymentPK` PRIMARY KEY (`' at line 1
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    at com.mysql.jdbc.Util.handleNewInstance(Util.java:406)
    at com.mysql.jdbc.Util.getInstance(Util.java:381)
    at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1030)

When I copy/paste the create statement in MySQL, I get the same error. I even took the ENGINE=InnoDB off to see if that made a difference, but it didn’t. Any ideas?

FYI: I installed MySQL using HomeBrew on my Mac.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T14:48:44+00:00Added an answer on May 23, 2026 at 2:48 pm

    My guess is that your QA db doesn’t know what the datatype double precision(19) is.
    Try changing it to just double precision.

    If that fails, consider using another datatype: The doc says that double precision is a “nonstandard variation”

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm new to using the Perl treebuilder module for HTML parsing and can't figure
That's pretty much it. I'm using Nokogiri to scrape a web page what has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I want use html5's new tag to play a wav file (currently only supported
In order to apply a triggered animation to all ToolTip s in my app,
I want to count how many characters a certain string has in PHP, but
Is it possible to replace javascript w/ HTML if JavaScript is not enabled on
I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
Seemingly simple, but I cannot find anything relevant on the web. What is the
Does anyone know how can I replace this 2 symbol below from the string

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.