Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown


Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I am new to JForum, but with a little confused that there are the PK/FK constraints in jforum database design as illustrated below

But I do not see any FK constraints claimed in enclosed either mysql_db_struct.sql or oracle_db_struct.sql

Any reason?


[originally posted on by causacn]
Migrated From
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not totally sure but I think that this was an early V3.0 design document (or one updated to show 3.0 DB).

It is still pretty accurate for V2, except that the PKs/FKs are "soft dependencies" and not defined in the DB.

Of course, I could be wrong and it's been around longer than that... and the PKs/FKs aren't defined because it makes the schema scripts and initial data scripts harder to maintain across all the DBs jForum supports. I.e., each DB has it's own syntax for defining pks and fks; inserting circular keys; and the like.
[originally posted on by monroe]
Live ordinary life in an extraordinary way. Details embedded in this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic