Constraint naming standard
By Michael Bryzek
OpenACS docs are written by the named authors, and may be edited
by OpenACS documentation staff.
@@ -9,16 +9,14 @@
with our data model. This gives us two real advantages:
Why do we need a naming convention?
-Oracle limits names,
+Oracle limits names,
in general, to 30 characters, which is hardly enough for a human readable constraint name.
We propose the following naming convention for all constraints, with
-the following abbreviations taken from Oracle Docs at
-
-http://oradoc.photo.net/ora81/DOC/server.815/a67779/ch4e.htm#8953.
+the following abbreviations taken from Oracle Docs.
Note that we shortened all of the constraint abbrevations to
two characters to save room.
-
Format of constraint name
+
Format of constraint name
<table name>_<column_name>_<constraint abbreviation>
In reality, this won't be possible because of the character limitation on
@@ -85,4 +83,4 @@
debugging (e.g. the error will say something like
"Cannot insert null value into column"), we recommend naming not null
constraints to be consistent in our naming of all constraints.
-
($Id$)