Results 1 to 3 of 3

Thread: Duplicates where one record has Deleted = 1 ?

  1. #1
    al3
    al3 is offline Sugar Community Member
    Join Date
    Aug 2007
    Posts
    394

    Default Duplicates where one record has Deleted = 1 ?

    FreeBSD 6.x, Apache 2.x, PHP 5.x, MySQL 5.x, Sugar 5.0CE

    I look through my Accounts table and I see I have a few pairs of records with the same name but different keys. One rec will have the "deleted" field set to 1, the other set to 0. There is one pair where they are both set to 1. What is that all about? Why two records? Is the database corrupt? Everything seems to work OK.

    Thanks,
    Al

  2. #2
    dpatech is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    NC
    Posts
    287

    Default Re: Duplicates where one record has Deleted = 1 ?

    Sugar does not physically delete records from the database but instead flags the records as deleted by setting the deleted field to "1". So, yes, everything is working properly and your database is not corrupt. There is a job that you can schedule through the administrative interface to periodically "purge" these deleted records from your database.
    - Sugar Team
    dpa Technology LLC
    e-mail: dpaDeveloper@dpatechnology.com
    web: http://www.dpatechnology.com

  3. #3
    al3
    al3 is offline Sugar Community Member
    Join Date
    Aug 2007
    Posts
    394

    Default Re: Duplicates where one record has Deleted = 1 ?

    Quote Originally Posted by dpatech
    Sugar does not physically delete records from the database but instead flags the records as deleted by setting the deleted field to "1". So, yes, everything is working properly and your database is not corrupt. There is a job that you can schedule through the administrative interface to periodically "purge" these deleted records from your database.
    OK, but why would there be TWO records... same name...one with delete set to 1 and another with 0. Looks like a record got added again since the keys are different?

    Al

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: 2008-06-03, 05:40 AM
  2. Replies: 1
    Last Post: 2008-05-19, 01:44 PM
  3. ListView 'Contact' field is linked to wrong record
    By leenwebb in forum Developer Help
    Replies: 4
    Last Post: 2007-02-19, 05:41 PM
  4. Replies: 0
    Last Post: 2007-01-09, 04:08 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
  •