[open-ils-commits] r14572 - trunk/Open-ILS/src/sql/Pg (miker)
svn at svn.open-ils.org
svn at svn.open-ils.org
Fri Oct 23 09:14:51 EDT 2009
Author: miker
Date: 2009-10-23 09:14:49 -0400 (Fri, 23 Oct 2009)
New Revision: 14572
Modified:
trunk/Open-ILS/src/sql/Pg/005.schema.actors.sql
Log:
Patch from Ben Ostrowsky to add inline documentation to the hours-of-operation table
Modified: trunk/Open-ILS/src/sql/Pg/005.schema.actors.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/005.schema.actors.sql 2009-10-23 00:30:23 UTC (rev 14571)
+++ trunk/Open-ILS/src/sql/Pg/005.schema.actors.sql 2009-10-23 13:14:49 UTC (rev 14572)
@@ -386,6 +386,52 @@
dow_6_open TIME NOT NULL DEFAULT '09:00',
dow_6_close TIME NOT NULL DEFAULT '17:00'
);
+COMMENT ON TABLE actor.hours_of_operation IS $$
+When does this org_unit usually open and close? (Variations
+are expressed in the actor.org_unit_closed table.)
+$$
+COMMENT ON COLUMN actor.hours_of_operation.dow_0_open IS $$
+When does this org_unit open on Monday?
+$$
+COMMENT ON COLUMN actor.hours_of_operation.dow_0_close IS $$
+When does this org_unit close on Monday?
+$$
+COMMENT ON COLUMN actor.hours_of_operation.dow_1_open IS $$
+When does this org_unit open on Tuesday?
+$$
+COMMENT ON COLUMN actor.hours_of_operation.dow_1_close IS $$
+When does this org_unit close on Tuesday?
+$$
+COMMENT ON COLUMN actor.hours_of_operation.dow_2_open IS $$
+When does this org_unit open on Wednesday?
+$$
+COMMENT ON COLUMN actor.hours_of_operation.dow_2_close IS $$
+When does this org_unit close on Wednesday?
+$$
+COMMENT ON COLUMN actor.hours_of_operation.dow_3_open IS $$
+When does this org_unit open on Thursday?
+$$
+COMMENT ON COLUMN actor.hours_of_operation.dow_3_close IS $$
+When does this org_unit close on Thursday?
+$$
+COMMENT ON COLUMN actor.hours_of_operation.dow_4_open IS $$
+When does this org_unit open on Friday?
+$$
+COMMENT ON COLUMN actor.hours_of_operation.dow_4_close IS $$
+When does this org_unit close on Friday?
+$$
+COMMENT ON COLUMN actor.hours_of_operation.dow_5_open IS $$
+When does this org_unit open on Saturday?
+$$
+COMMENT ON COLUMN actor.hours_of_operation.dow_5_close IS $$
+When does this org_unit close on Saturday?
+$$
+COMMENT ON COLUMN actor.hours_of_operation.dow_6_open IS $$
+When does this org_unit open on Sunday?
+$$
+COMMENT ON COLUMN actor.hours_of_operation.dow_6_close IS $$
+When does this org_unit close on Sunday?
+$$
CREATE TABLE actor.org_unit_closed (
id SERIAL PRIMARY KEY,
More information about the open-ils-commits
mailing list