Results 1 to 5 of 5

Thread: Changing Varchar length

  1. #1
    eaho is offline Sugar Community Member
    Join Date
    Aug 2006
    Posts
    29

    Default Changing Varchar length

    I have run into the issue of database schema changes. Will Changing the length of a varchar in the Sugar database cause issues within the application?

  2. #2
    kbrill's Avatar
    kbrill is offline SugarCRM PS Engineer
    Join Date
    Jul 2004
    Location
    St Louis, MO
    Posts
    3,183

    Default Re: Changing Varchar length

    Quote Originally Posted by eaho
    I have run into the issue of database schema changes. Will Changing the length of a varchar in the Sugar database cause issues within the application?
    Not if you change the size in the vardefs.php file and let 'Repair Database' take care of the sql changes.
    Kenneth Brill - Help Forum Moderator

    I do not respond to 'Private Messages'. Please email me directly instead

    When asking for help, PLEASE give us your Server Information and Version Numbers as asked for on the 'Post New Message' screen as well as any JavaScript errors shown at the bottom of the browser window.
    Help us Help You

  3. #3
    eaho is offline Sugar Community Member
    Join Date
    Aug 2006
    Posts
    29

    Default Re: Changing Varchar length

    In a related question. If I add columns into a table, will the database cleanup tool for SugarCRM leave the new columns alone? And then the same question for adding tables to the database.

  4. #4
    kbrill's Avatar
    kbrill is offline SugarCRM PS Engineer
    Join Date
    Jul 2004
    Location
    St Louis, MO
    Posts
    3,183

    Default Re: Changing Varchar length

    Quote Originally Posted by eaho
    In a related question. If I add columns into a table, will the database cleanup tool for SugarCRM leave the new columns alone? And then the same question for adding tables to the database.
    Only if you add those fields in teh vardefs.php file too. The database cleanup tool uses this file to decide if the table needs changing.
    Kenneth Brill - Help Forum Moderator

    I do not respond to 'Private Messages'. Please email me directly instead

    When asking for help, PLEASE give us your Server Information and Version Numbers as asked for on the 'Post New Message' screen as well as any JavaScript errors shown at the bottom of the browser window.
    Help us Help You

  5. #5
    cywolf's Avatar
    cywolf is offline Sugar Community Member
    Join Date
    Oct 2005
    Location
    Toronto, Canada
    Posts
    223

    Default Re: Changing Varchar length

    The database repair tool, at least before 4.5, never drops columns - it only adds or updates columns that are defined in the vardefs.php files.
    Andrew Whitehead
    The Long Reach Corporation
    http://infoathand.com

Thread Information

Users Browsing this Thread

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

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
  •