Results 1 to 7 of 7

Thread: error after upgrading sugar to 5.0.0g

  1. #1
    Systems Navigator is offline Sugar Community Member
    Join Date
    Apr 2007
    Posts
    195

    Exclamation error after upgrading sugar to 5.0.0g

    hello,

    After I upgraded sugar to version 5.0.0g I got an error while repairing the database.

    Repair Database:
    Processing database and vardef comparison...
    Error creating table: repair_table: Query Failed:CREATE TABLE repair_table (id char(36) NOT NULL ,date_entered datetime NULL ,date_modified datetime NULL ,modified_user_id char(36) NULL ,created_by char(36) NULL ,description text NULL ,deleted bool DEFAULT '0' NULL ,assigned_user_id char(36) NULL ,project_id char(36) NULL ,projecttask_id char(36) NULL ,projectregistration_date date NOT NULL ,projectregistration_duration float(18,) NOT NULL ,projectregistration_starttime int(11) NOT NULL , PRIMARY KEY (id)) CHARACTER SET utf8 COLLATE utf8_general_ci::MySQL error 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 ') NOT NULL ,projectregistration_starttime int(11) NOT NULL , PRIMARY KEY (id)' at line 1

    The table it is about is a custom table which I created via the module builder. I saw various threads about error 1064, but I couldn't fix it with one of them. Does anyone has an idea how to solve this?

    Thanks in advance.

    OS: Windows 2003 Server R2
    Sugar: Version 5.0.0g Pro
    Webserver: apache 2.0.59
    PHP: Version 5.2.5
    Mysql: version 5.0.45

  2. #2
    andopes's Avatar
    andopes is offline A Sugar Hero | Help Forum Moderator
    Join Date
    Jul 2006
    Location
    São Paulo - Brazil
    Posts
    8,335

    Default Re: error after upgrading sugar to 5.0.0g

    Hi Systems Navigator

    The error is in the "projectregistration_duration float( 18, ) NOT NULL ,"
    Probably the precision for this field is empty in the vardefs, which generate a sql error.

    Look for "projectregistration_duration" into your vardefs files and check if the precision is defined.
    Just fix it and click on Quick Repair and Rebuild.

    Best regards.
    André Lopes
    DevToolKit / Project of the Month - June 2009
    Lampada Global Services- Open Source Solutions
    Avenida Ipiranga, 318
    Bloco B - CJ 1602
    São Paulo, SP 01046-010
    Brazil
    Office: +55 11 3237-3110
    Mobile: +55 11 7636-5859
    e-mail: andre@lampadaglobal.com

    Lampada Global delivers offshore software development and support services to customers around the world.
    Lampada is proud to be a SugarCRM Gold Partner, revolutionizing Customer Relationship Management.

    I DO NOT answer questions through PM and Email. If you need some help post your question into SugarForum.

  3. #3
    Systems Navigator is offline Sugar Community Member
    Join Date
    Apr 2007
    Posts
    195

    Default Re: error after upgrading sugar to 5.0.0g

    Thank you very much. This solved the problem. Thjanks for your fast and good response



    Regards

  4. #4
    fjhuerte is offline Senior Member
    Join Date
    Jun 2008
    Posts
    38

    Default Re: error after upgrading sugar to 5.0.0g

    Hi andopes,

    I am having the same problem but can't trace the problem..
    here is the error:

    Error creating table: repair_table: Query Failed:CREATE TABLE repair_table (id char(36) NOT NULL ,name varchar(255) NOT NULL ,date_entered datetime NULL ,date_modified datetime NULL ,modified_user_id char(36) NULL ,created_by char(36) NULL ,description text NULL ,deleted bool DEFAULT '0' NULL ,assigned_user_id char(36) NULL ,case_number varchar(15) NULL ,contact_id char(36) NULL ,interaction_type varchar(100) NOT NULL ,category varchar(100) NOT NULL ,subcategory varchar(100) NOT NULL ,case_status varchar(100) NOT NULL ,case_remarks text NULL ,merchant_name varchar(100) NULL ,transaction_date date NULL ,transaction_amount float NULL ,user_id varchar(50) NULL ,email_address varchar(50) NULL ,statement_date date NULL ,biller varchar(100) NULL ,subscriber_name varchar(100) NULL ,utility_merchant_number varchar(100) NULL ,ten_digit_service_id_number NULL ,nine_digit_service_id_number NULL ,eight_digit_account_number NULL ,mobile_identification_number varchar(25) NULL ,embossed_date date NULL ,preferred_address varchar(100) NULL ,delivery_remarks text NULL ,soa_statement_date date NULL ,current_ba varchar(100) NULL ,soa_preferred_address varchar(100) NULL ,card_number varchar(16) NULL ,from_date datetime NULL ,end_date datetime NULL , PRIMARY KEY (id)) CHARACTER SET utf8 COLLATE utf8_general_ci::MySQL error 1064:

    What is causing this?
    Thanks!
    fjhuerte

  5. #5
    nirmit is offline Senior Member
    Join Date
    Aug 2008
    Posts
    42

    Default Re: error after upgrading sugar to 5.0.0g

    Quote Originally Posted by fjhuerte
    Hi andopes,

    I am having the same problem but can't trace the problem..
    here is the error:

    Error creating table: repair_table: Query Failed:CREATE TABLE repair_table (id char(36) NOT NULL ,name varchar(255) NOT NULL ,date_entered datetime NULL ,date_modified datetime NULL ,modified_user_id char(36) NULL ,created_by char(36) NULL ,description text NULL ,deleted bool DEFAULT '0' NULL ,assigned_user_id char(36) NULL ,case_number varchar(15) NULL ,contact_id char(36) NULL ,interaction_type varchar(100) NOT NULL ,category varchar(100) NOT NULL ,subcategory varchar(100) NOT NULL ,case_status varchar(100) NOT NULL ,case_remarks text NULL ,merchant_name varchar(100) NULL ,transaction_date date NULL ,transaction_amount float NULL ,user_id varchar(50) NULL ,email_address varchar(50) NULL ,statement_date date NULL ,biller varchar(100) NULL ,subscriber_name varchar(100) NULL ,utility_merchant_number varchar(100) NULL ,ten_digit_service_id_number NULL ,nine_digit_service_id_number NULL ,eight_digit_account_number NULL ,mobile_identification_number varchar(25) NULL ,embossed_date date NULL ,preferred_address varchar(100) NULL ,delivery_remarks text NULL ,soa_statement_date date NULL ,current_ba varchar(100) NULL ,soa_preferred_address varchar(100) NULL ,card_number varchar(16) NULL ,from_date datetime NULL ,end_date datetime NULL , PRIMARY KEY (id)) CHARACTER SET utf8 COLLATE utf8_general_ci::MySQL error 1064:

    What is causing this?
    Thanks!
    fjhuerte
    The problem if with

    ten_digit_service_id_number NULL ,
    nine_digit_service_id_number NULL ,
    eight_digit_account_number NULL ,


    as no datatype has been specified. Define the datatype in the vardef and repair again.

    Peace
    -------------------------------------------------------
    Nirmit Bothra
    http://twitter.com/nirmit

  6. #6
    fjhuerte is offline Senior Member
    Join Date
    Jun 2008
    Posts
    38

    Default Re: error after upgrading sugar to 5.0.0g

    ok! I will try this!

    Thanks!
    fjhuerte

  7. #7
    federico.giunchi is offline Junior Member
    Join Date
    Nov 2007
    Location
    Italy
    Posts
    4

    Default Re: error after upgrading sugar to 5.0.0g

    Hello, I get an error too:

    Error creating table: repair_table: Query Failed:CREATE TABLE repair_table (id char(36) NOT NULL ,date_entered datetime NULL ,date_modified datetime NULL ,modified_user_id char(36) NULL ,created_by char(36) NULL ,description text NULL ,deleted bool DEFAULT '0' NULL ,assigned_user_id char(36) NULL ,salutation varchar(5) NULL ,first_name varchar(100) NULL ,last_name varchar(100) NULL ,title varchar(100) NULL ,department varchar(255) NULL ,do_not_call bool DEFAULT '0' NULL ,phone_home varchar(25) NULL ,phone_mobile varchar(25) NULL ,phone_work varchar(25) NULL ,phone_other varchar(25) NULL ,phone_fax varchar(25) NULL ,primary_address_street varchar(150) NULL ,primary_address_city varchar(100) NULL ,primary_address_state varchar(100) NULL ,primary_address_postalcode varchar(20) NULL ,primary_address_country varchar(255) NULL ,alt_address_street varchar(150) NULL ,alt_address_city varchar(100) NULL ,alt_address_state varchar(100) NULL ,alt_address_postalcode varchar(20) NULL ,alt_address_country varchar(255) NULL ,assistant varchar(75) NULL ,assistant_phone varchar(25) NULL ,lead_source varchar(100) NULL ,reports_to_id char(36) NULL ,birthdate date NULL ,portal_name varchar(255) NULL ,portal_active bool DEFAULT '0' NOT NULL ,portal_app varchar(255) NULL ,campaign_id char(36) NULL , NULL , PRIMARY KEY (id), KEY idx_cont_last_first (last_name, first_name, deleted), KEY idx_contacts_del_last (deleted, last_name), KEY idx_cont_del_reports (deleted, reports_to_id, last_name), KEY idx_reports_to_id (reports_to_id), KEY idx_del_id_user (deleted, id, assigned_user_id), KEY idx_cont_assigned (assigned_user_id)) CHARACTER SET utf8 COLLATE utf8_general_ci::MySQL error 1064:

    Thank you in advance.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 8
    Last Post: 2009-12-02, 04:04 PM
  2. Replies: 2
    Last Post: 2008-03-07, 02:47 PM
  3. Sugar University: Upgrading to 4.5.1: Tuesday, the 6th at 1pm PST
    By andydreisch in forum Installation and Upgrade Help
    Replies: 0
    Last Post: 2007-02-04, 09:34 PM
  4. Replies: 8
    Last Post: 2006-05-26, 10:11 PM
  5. Replies: 0
    Last Post: 2006-03-11, 04:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •