Results 1 to 4 of 4

Thread: changing field lengths

  1. #1
    jhamill is offline Sugar Community Member
    Join Date
    Sep 2004
    Posts
    70

    Default changing field lengths

    we've noticed that in the prospects table, the title field is only 25 characters long, yet in the contact field, it's 50 characters. is it safe to increase the field size in prospects (and will it break anything if we do it)?

    john
    Last edited by jhamill; 2006-01-17 at 10:57 PM. Reason: typo

  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 field lengths

    Quote Originally Posted by jhamill
    we've noticed that in the prospects table, the title field is only 25 characters long, yet in the contact field, it's 50 characters. is it safe to increase the field size in prospects (and will it break anything if we do it)?

    john
    as long as you change the length in the table and vardefs you should be fine.
    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
    ocaptain is offline Sugar Community Member
    Join Date
    Feb 2007
    Posts
    11

    Default Re: changing field lengths

    I'm having a problem with this... I created a custom field in my Contact screen with a length of 25. Worked fine.

    I then went into the Custom Field Editor and changed it to 50. When I go into the Contact Edit screen I can still only put in 25 characters. I deleted the field from the form, saved the form, and re-added the field and I can still only enter 25 characters, though the field definition has a Max size of 50.

    Any ideas?

    Thanks!!!

    -Anthony

  4. #4
    paikmoses's Avatar
    paikmoses is offline Sugar Community Member
    Join Date
    Jan 2006
    Posts
    541

    Default Re: changing field lengths

    Hi John and Anthony,

    You can directly change them through the phpMyAdmin. Simply run this query:

    ALTER TABLE `leads_cstm` CHANGE `website_c` `website_c` VARCHAR( 100 ) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT 'http://'
    I did this for my leads custom field and changed the varchar value from 50 to 100. Change the "leads_cstm" to contact custom table name.

    Hope this helps.

    Regards,

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
  •