LP#1287510 Add missing column to upgrade script
authorDan Wells <dbw2@calvin.edu>
Wed, 5 Mar 2014 17:24:19 +0000 (12:24 -0500)
committerBen Shum <bshum@biblio.org>
Thu, 6 Mar 2014 22:38:21 +0000 (17:38 -0500)
If you come via upgrade and not a fresh 2.5 DB, you are probably
missing the action.aged_hold_request.behind_desk column.  Add it in a
harmless way.

Signed-off-by: Dan Wells <dbw2@calvin.edu>
Signed-off-by: Ben Shum <bshum@biblio.org>
Open-ILS/src/sql/Pg/upgrade/0868.schema.all_hold_behind_desk.sql

index 0a52719..cb463ad 100644 (file)
@@ -1,5 +1,9 @@
 -- add missing behind_desk column
 
+\qecho *** This ALTER TABLE might fail depending on your DB vintage. ***
+\qecho *** It should be harmless. ***
+ALTER TABLE action.aged_hold_request ADD COLUMN behind_desk BOOLEAN;
+
 BEGIN;
 
 SELECT evergreen.upgrade_deps_block_check('0868', :eg_version);