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 »
  • Using CiviCRM »
  • Using CiviCase (Moderator: Dave Greenberg) »
  • SOLVED: civicrm_option_value
Pages: [1]

Author Topic: SOLVED: civicrm_option_value  (Read 1539 times)

happyHacker

  • Guest
SOLVED: civicrm_option_value
August 17, 2009, 05:56:47 am
I am looking at the config. advice at http://wiki.civicrm.org/confluence/display/CRMDOC/CiviCase+Configuration which is for 2.2 (I had been directed here in another post to configure CiviCase) with the view to adding over 100 case types by SQL. However in the 3.0alphaB this table seems to have many more fields. This implies I cannot use the example given "Insert case types using a SQL script". I'm a little unfamiliar with SQL so I suppose I will have to do this by hand unless there is an example SQL anywhere.

2.2 (taken from above URL) INSERT INTO
`civicrm_option_value` (`option_group_id`, `label`, `value`, `name`, `grouping`, `filter`, `is_default`, `weight`, `description`, `is_optgroup`, `is_reserved`, `is_active`)

3.0 (taken from my actual DB) INSERT INTO
`civicrm_option_value` (`id`, `option_group_id`, `label`, `value`, `name`, `grouping`, `filter`, `is_default`, `weight`, `description`, `is_optgroup`, `is_reserved`, `is_active`, `component_id`, `visibility_id`)

Advice appreciated.
« Last Edit: August 18, 2009, 11:32:33 pm by happyHacker »

demeritcowboy

  • Ask me questions
  • ****
  • Posts: 570
  • Karma: 42
  • CiviCRM version: Always the latest!
  • CMS version: Drupal 6 mostly, still evaluating 7.
  • MySQL version: Mix of 5.0 / 5.1 / 5.5
  • PHP version: 5.3, usually on Windows
Re: civicrm_option_value
August 18, 2009, 12:46:16 pm
Create one case type manually, then do mysqldump to see what the record looks like, then copy and paste to generate your own sql file.

happyHacker

  • Guest
Re: civicrm_option_value
August 18, 2009, 11:32:05 pm
Yes, thanks I did that and came to the conclusion that because I had 3 other values that needed incrementing it would be best just to create each Case Type in the normal way to avoid errors. Then I have to create the individual xml files. Be done soon.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviCase (Moderator: Dave Greenberg) »
  • SOLVED: civicrm_option_value

This forum was archived on 2017-11-26.