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) »
  • can't complete "Ensure Schema Integrity"
Pages: [1]

Author Topic: can't complete "Ensure Schema Integrity"  (Read 2034 times)

lesley

  • I post occasionally
  • **
  • Posts: 64
  • Karma: 1
can't complete "Ensure Schema Integrity"
July 16, 2008, 12:36:04 am
Hi this is following on from http://forum.civicrm.org/index.php/topic,3849.0.html

I've run all the sql upgrade scripts on my database.
I create the new empty dbase from civicrm_41.mysql.
Then strike all sorts of problems when trying to import data:-

First error

#1452 - Cannot add or update a child row: a foreign key constraint fails (`19newjul16/civicrm_acl`, CONSTRAINT `FK_civicrm_acl_domain_id` FOREIGN KEY (`domain_id`) REFERENCES `civicrm_domain` (`id`))

So I remove the whole "INSERT INTO `civicrm_acl` " section and try again

It gets a bit further - next error is when inserting into civicrm_activity

#1054 - Unknown column 'source_record_id' in 'field list'

And there's a little red blob with a white cross next to a particular record - does that mean it's just that record that's problematic, or is this a schema issue?

I am so struggling here - all help appreciated
cheers
Lesley

speleo

  • Ask me questions
  • ****
  • Posts: 396
  • Karma: 28
  • CiviCRM version: 4.3.1
  • CMS version: J! 2.5,9
  • MySQL version: 5.1
  • PHP version: 5.3.24
Re: can't complete "Ensure Schema Integrity"
July 16, 2008, 02:05:07 am
You could try disabling the foreign key checks while the data is loading by adding this to top of dump file:

SET FOREIGN_KEY_CHECKS=0;

... and then this to end of file:

SET FOREIGN_KEY_CHECKS=1;

phayes

  • Guest
Re: can't complete "Ensure Schema Integrity"
January 06, 2009, 04:02:03 pm
I am following the instructions on:

http://wiki.civicrm.org/confluence/display/CRMDOC/Upgrade+Drupal+Sites+to+2.0

I am running into a similar issue when trying to do the "ensure database integrity" step.

I am getting the error "Unknown column 'domain_id' in 'field list'"

It looks like my previous version of civicrm used the "domain ID" field in a whole bunch of places, whereas the new schema does not use it.

So there are two ways I could fix this as far as i can see:

1) edit the mysql file i'm importing and remove all references to "domain_id"
2) add extra field "domain_id" to various tables in the new system (I would assume that extra fields will just sit there and be ignored by the new civicrm system)

Any recommendations on which one I should try?   Is there a replacement for "domain_id" that I should be looking out for to make sure it is properly filled in???

Cheers,

Patrick


Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • can't complete "Ensure Schema Integrity"

This forum was archived on 2017-11-26.