Index: openacs-4/packages/acs-core-docs/www/xml/engineering-standards/constraint-naming.xml =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/xml/engineering-standards/constraint-naming.xml,v diff -u -r1.6.14.1 -r1.6.14.2 --- openacs-4/packages/acs-core-docs/www/xml/engineering-standards/constraint-naming.xml 21 Jun 2016 07:44:36 -0000 1.6.14.1 +++ openacs-4/packages/acs-core-docs/www/xml/engineering-standards/constraint-naming.xml 23 Jun 2016 08:32:46 -0000 1.6.14.2 @@ -94,13 +94,13 @@ -In reality, this won't be possible because of the character limitation on +In reality, this won't be possible because of the character limitation on names inside oracle. When the name is too long, we will follow these two steps in order: - Abbreviate the table name with the table's initials (e.g. users -> u and users_contact -> uc). + Abbreviate the table name with the table's initials (e.g. users -> u and users_contact -> uc). Truncate the column name until it fits. @@ -152,10 +152,10 @@ -Why it's good to name primary keys +Why it's good to name primary keys -Naming primary keys might not have any obvious advantages. However, here's an +Naming primary keys might not have any obvious advantages. However, here's an example where naming the primary key really helps (and this is by no means a rare case! @@ -177,7 +177,7 @@ -Isn't it nice to see "EXAMPLE_TOPICS_TOPIC_ID_PK" in the trace +Isn't it nice to see "EXAMPLE_TOPICS_TOPIC_ID_PK" in the trace and know exactly which table oracle is using at each step? @@ -197,7 +197,7 @@ About Naming the not null constraints -Though naming "not null" constraints doesn't help immeditately in error +Though naming "not null" constraints doesn't help immeditately in error 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.