LP#1248734: (follow-up) add new indexes to schema update script
authorGalen Charlton <gmc@equinoxinitiative.org>
Mon, 27 Jul 2020 14:16:37 +0000 (10:16 -0400)
committerGalen Charlton <gmc@equinoxinitiative.org>
Mon, 27 Jul 2020 14:16:37 +0000 (10:16 -0400)
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/src/sql/Pg/upgrade/XXXX.schema.lp1248734_add_ws_to_ihu.sql

index 5cb74bf..a96e148 100644 (file)
@@ -5,4 +5,7 @@ BEGIN;
 ALTER TABLE action.in_house_use ADD COLUMN workstation INT REFERENCES actor.workstation (id) DEFERRABLE INITIALLY DEFERRED;
 ALTER TABLE action.non_cat_in_house_use ADD COLUMN workstation INT REFERENCES actor.workstation (id) DEFERRABLE INITIALLY DEFERRED;
 
+CREATE INDEX action_in_house_use_ws_idx ON action.in_house_use ( workstation );
+CREATE INDEX non_cat_in_house_use_ws_idx ON action.non_cat_in_house_use ( workstation );
+
 COMMIT;