grace_period INTERVAL, -- Grace period override
script_test TEXT, -- javascript source
total_copy_hold_ratio FLOAT,
- available_copy_hold_ratio FLOAT
+ available_copy_hold_ratio FLOAT,
+ description TEXT
);
-- Nulls don't count for a constraint match, so we have to coalesce them into something that does.
max_holds INT, -- Total hold requests must be less than this, NULL means skip (always pass)
include_frozen_holds BOOL NOT NULL DEFAULT TRUE, -- Include frozen hold requests in the count for max_holds test
stop_blocked_user BOOL NOT NULL DEFAULT FALSE, -- Stop users who cannot check out items from placing holds
- age_hold_protect_rule INT REFERENCES config.rule_age_hold_protect (id) DEFERRABLE INITIALLY DEFERRED -- still not sure we want to move this off the copy
+ age_hold_protect_rule INT REFERENCES config.rule_age_hold_protect (id) DEFERRABLE INITIALLY DEFERRED, -- still not sure we want to move this off the copy
+ description TEXT
);
-- Nulls don't count for a constraint match, so we have to coalesce them into something that does.
--- /dev/null
+-- Load the TAP functions.
+BEGIN;
+
+-- Plan the tests.
+SELECT plan(2);
+
+-- Run the tests.
+
+SELECT has_column('config', 'circ_matrix_matchpoint', 'description',
+ 'Column "description" on config.circ_matrix_matchpoint should exist');
+SELECT has_column('config', 'hold_matrix_matchpoint', 'description',
+ 'Column "description" on config.hold_matrix_matchpoint should exist');
+
+
+-- Finish the tests and clean up.
+SELECT * FROM finish();
+ROLLBACK;
+
--- /dev/null
+BEGIN;
+
+ALTER TABLE config.circ_matrix_matchpoint
+ ADD COLUMN description TEXT;
+
+COMMIT;
--- /dev/null
+BEGIN;
+
+ALTER TABLE config.hold_matrix_matchpoint
+ ADD COLUMN description TEXT;
+
+COMMIT;