CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Issue at step 5 of the database upgrade script
Pages: [1]

Author Topic: Issue at step 5 of the database upgrade script  (Read 1692 times)

backdrifting

  • I post frequently
  • ***
  • Posts: 178
  • Karma: 2
Issue at step 5 of the database upgrade script
May 01, 2008, 01:36:51 pm
I'm trying to upgrade to 2.0.3 from 1.9.  I followed all upgrade instructions on CiviCRM.org including the #4 of sourcing and rebuilding the database, and when I get to step 5 (custom data) of the script I get the following error:

Yet again I'm getting the following error at step 5 of the CiviCRM upgrade installer - when I try STEP 7 of the upgrade instructions (to run the installer script) ... this is five step process and on the 5 step, Drupal throws out the following error:   (additionally I'm using the new sourced and cleaned up database here per step 4 of the overall upgrade instructions, but it appears to still be having issues with the custom data per this error):

unrecoverable error
    Sorry. A non-recoverable error has occurred.

    Return to home page.

Error Details:

Array
(
    [callback] => Array
        (
           
  • => CRM_Core_Error
  • [1] => handle
            )

       
Code: [Select]
=> -2
    [message] => DB Error: syntax error
    [mode] => 16
    [debug_info] =>         ALTER TABLE civicrm_value_1_membership
        ADD COLUMN `mailing_address_zippostal_code:` double,
        ADD INDEX INDEX_mailing_address_zippostal_code: ( mailing_address_zippostal_code: ) [nativecode=1064 ** 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 ': ( mailing_address_zippostal_code: )' at line 3]
    [type] => DB_Error
    [user_info] =>         ALTER TABLE civicrm_value_1_membership
        ADD COLUMN `mailing_address_zippostal_code:` double,
        ADD INDEX INDEX_mailing_address_zippostal_code: ( mailing_address_zippostal_code: ) [nativecode=1064 ** 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 ': ( mailing_address_zippostal_code: )' at line 3]
    [to_string] => [db_error: message="DB Error: syntax error" code=-2 mode=callback callback=CRM_Core_Error::handle prefix="" info="        ALTER TABLE civicrm_value_1_membership
        ADD COLUMN `mailing_address_zippostal_code:` double,
        ADD INDEX INDEX_mailing_address_zippostal_code: ( mailing_address_zippostal_code: ) [nativecode=1064 ** 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 ': ( mailing_address_zippostal_code: )' at line 3]"


Deepak Srivastava

  • Moderator
  • Ask me questions
  • *****
  • Posts: 677
  • Karma: 65
Re: Issue at step 5 of the database upgrade script
May 02, 2008, 09:09:38 am
The error shows you have custom field with name as 'mailing_address_zippostal_code:'
And it's the colon ':' which is creating the problem.

Removing the colon should work for you.
Found this reply helpful? Contribute NOW and help us improve CiviCRM with the Make it Happen! initiative.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Issue at step 5 of the database upgrade script
May 02, 2008, 01:19:03 pm

this is a bug in the upgrade script. can you cut-n-paste what the name of the custom field is in your 1.9 database. we transform that name into a column name and seems like we dont eliminate the ':'

As deepak mentions, you can get past the error by changing the name of your custom field

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Issue at step 5 of the database upgrade script

This forum was archived on 2017-11-26.