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) »
  • Updating the database along with module upgrade - Which documenation to follow?
Pages: [1]

Author Topic: Updating the database along with module upgrade - Which documenation to follow?  (Read 704 times)

bsharp222

  • I’m new here
  • *
  • Posts: 6
  • Karma: 0
  • CiviCRM version: 4.1.3
  • CMS version: WordPress 3.4
  • MySQL version: 5.1.56
  • PHP version: 5.2.17
Updating the database along with module upgrade - Which documenation to follow?
May 24, 2012, 01:37:12 pm
I am trying to update the database schema to be compatible for my 2.2 to 3.0 CiviCRM upgrade.  I am getting errors, and I have two lurking questions.

1. Should I be using the current documentation instructions, or should I use the documentation for 3.0?  I've been using the civicrm.mysql file that comes tarred with 3.0.4.
http://wiki.civicrm.org/confluence/display/CRMDOC30/Ensuring+Schema+Integrity+on+Upgrades
http://wiki.civicrm.org/confluence/display/CRMDOC41/Ensuring+Schema+Integrity+on+Upgrades

Also, it seems like the instructions are pretty much the same, but the older documentation doesn't get into the details of how to do it yourself.  Are the steps different?  Using the 4.1 instructions with the 3.0 civicrm.mysql file, I get the following errors during the step where I give MySQL the data.sql file:

ERROR 1054 (42S22): Unknown column 'due_date_time' in 'field list'
ERROR 1054 (42S22): Unknown column 'greeting_type_id' in 'field list'
ERROR 1054 (42S22): Unknown column 'default_discount_id' in 'field list'
ERROR 1054 (42S22): Unknown column 'location_count' in 'field list'


2. I create a new database through DreamHost's web panel, and I am not sure if there is a way to change the configuration for it.  After feeding the files into MySQL, I look at the default storage engine in phpMyAdmin.  Even though I have set the variable to InnoDB prior to feeding MySQL the files, the database still uses MyISAM as the default engine.  The tables are all InnoDB, but the database itself doesn't seem to be.  I can't change the configuration file (my.cnf) for MySQL.  The server runs Ver 14.12 Distrib 5.0.51a of MySQL.  I feel like it being stored as MyISAM will cause a complication that I have seen others face in the forum around foreign key constraints.  Is it worth getting the default store engine changed to InnoDB?

I don't know what is causing my errors, but I am at my wit's end.  I have done my best not to rely on asking a lot of questions.  Fortunately I found a lot of the mistakes I was making along the way.  If I can't proceed any further then a specialist will have to be hired in to help.

Doug MB

  • I’m new here
  • *
  • Posts: 7
  • Karma: 0
  • MB stands for Monkey Brains.
  • CiviCRM version: 4.2.4
  • CMS version: Drupal 7.14
  • MySQL version: 5.1.63
  • PHP version: 5.3.3-7 +squeeze
Re: Updating the database along with module upgrade - Which documenation to follow?
July 05, 2012, 05:47:44 pm
Were you able to resolve your issue?
Civicrm Mentee seeking Mentors :)  I'm starting with book.

My first Civicrm project will be converting our non profits 12 year old Imis 3.5.8 database to civicrm.

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Updating the database along with module upgrade - Which documenation to follow?
July 08, 2012, 05:33:44 am
Hi. You should use the old instructions because the upgrade procedure has changed over the years.

The default table engine being MyISAM or InnoDB makes no difference--as long as InnoDB is enabled that's all you need.

Regarding your "Unknown column" errors, what file exactly are you importing to get this error?
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

bsharp222

  • I’m new here
  • *
  • Posts: 6
  • Karma: 0
  • CiviCRM version: 4.1.3
  • CMS version: WordPress 3.4
  • MySQL version: 5.1.56
  • PHP version: 5.2.17
Re: Updating the database along with module upgrade - Which documenation to follow?
October 15, 2012, 09:03:52 pm
I resolved the issue, but unfortunately I don't recall the steps.  I went from 2.2 to 3.4 to 4.1.  I'm working on the site again after things got all settled in.  I'll share the solution if I find it in my notes.

Thanks for responding, having forum support is invaluable.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Updating the database along with module upgrade - Which documenation to follow?

This forum was archived on 2017-11-26.