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) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Foreign key needed for the table civicrm_line_item?
Pages: [1]

Author Topic: Foreign key needed for the table civicrm_line_item?  (Read 347 times)

SarahG (FountainTribe)

  • Ask me questions
  • ****
  • Posts: 782
  • Karma: 29
  • CiviCRM version: 4.4.7
  • CMS version: Drupal 6, Drupal 7
  • MySQL version: 5.5
  • PHP version: 5.3
Foreign key needed for the table civicrm_line_item?
November 24, 2013, 07:45:23 am
While investigating the CiviCRM table structure for other reasons, I noticed that the table "civicrm_line_item" does NOT have a foreign key on the field "financial_type_id".     The tables "civicrm_contribution" , "civicrm_contribution_recur" and "civicrm_pledge" all have a foreign key defined for the financial_type_id field.

Should a foreign key for financial_type_id be added to the line_item table?

Did I help you? Please donate to the Civi-Make-It-Happen campaign  CiviCRM for mobile devices! 

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Foreign key needed for the table civicrm_line_item?

This forum was archived on 2017-11-26.