From: miker Date: Fri, 23 Oct 2009 13:14:49 +0000 (+0000) Subject: Patch from Ben Ostrowsky to add inline documentation to the hours-of-operation table X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=077a37b89b2d5e6abe5ebb4853dab23b92e9a599;p=evergreen%2Fmasslnc.git Patch from Ben Ostrowsky to add inline documentation to the hours-of-operation table git-svn-id: svn://svn.open-ils.org/ILS/trunk@14572 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/src/sql/Pg/005.schema.actors.sql b/Open-ILS/src/sql/Pg/005.schema.actors.sql index c12b480c3f..72d1869687 100644 --- a/Open-ILS/src/sql/Pg/005.schema.actors.sql +++ b/Open-ILS/src/sql/Pg/005.schema.actors.sql @@ -386,6 +386,52 @@ CREATE TABLE actor.hours_of_operation ( 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,