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 ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

FK/PK

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

I am new to JForum, but with a little confused that there are the PK/FK constraints in jforum database design as illustrated below
https://jforum.dev.java.net/source/browse/jforum/jforum_model.gif?rev=1.1&view=markup

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

Any reason?

Thanks!

[originally posted on jforum.net by causacn]
 
Migrated From Jforum.net
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 jforum.net 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
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic