From f11549c42c3e870b04cf399db2698a47b740b36d Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Mon, 17 Aug 2020 16:24:07 -0400 Subject: [PATCH] LP1858833 Stamping DB upgrade for change_password Signed-off-by: Bill Erickson --- Open-ILS/src/sql/Pg/002.schema.config.sql | 2 +- ...or_change_password.sql => 1213.schema.actor_change_password.sql} | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) rename Open-ILS/src/sql/Pg/upgrade/{xxxx.function.actor_change_password.sql => 1213.schema.actor_change_password.sql} (71%) diff --git a/Open-ILS/src/sql/Pg/002.schema.config.sql b/Open-ILS/src/sql/Pg/002.schema.config.sql index f5091efeb5..5111c427aa 100644 --- a/Open-ILS/src/sql/Pg/002.schema.config.sql +++ b/Open-ILS/src/sql/Pg/002.schema.config.sql @@ -92,7 +92,7 @@ CREATE TRIGGER no_overlapping_deps BEFORE INSERT OR UPDATE ON config.db_patch_dependencies FOR EACH ROW EXECUTE PROCEDURE evergreen.array_overlap_check ('deprecates'); -INSERT INTO config.upgrade_log (version, applied_to) VALUES ('1212', :eg_version); -- berick/sandbergja/gmcharlt +INSERT INTO config.upgrade_log (version, applied_to) VALUES ('1213', :eg_version); -- rhamby/berick CREATE TABLE config.bib_source ( id SERIAL PRIMARY KEY, diff --git a/Open-ILS/src/sql/Pg/upgrade/xxxx.function.actor_change_password.sql b/Open-ILS/src/sql/Pg/upgrade/1213.schema.actor_change_password.sql similarity index 71% rename from Open-ILS/src/sql/Pg/upgrade/xxxx.function.actor_change_password.sql rename to Open-ILS/src/sql/Pg/upgrade/1213.schema.actor_change_password.sql index 88aa119bad..d604644275 100644 --- a/Open-ILS/src/sql/Pg/upgrade/xxxx.function.actor_change_password.sql +++ b/Open-ILS/src/sql/Pg/upgrade/1213.schema.actor_change_password.sql @@ -1,6 +1,6 @@ BEGIN; -SELECT evergreen.upgrade_deps_block_check('xxxx', :eg_version); +SELECT evergreen.upgrade_deps_block_check('1213', :eg_version); CREATE OR REPLACE FUNCTION actor.change_password (user_id INT, new_pw TEXT, pw_type TEXT DEFAULT 'main') RETURNS VOID AS $$ @@ -22,4 +22,8 @@ BEGIN END; $$ LANGUAGE 'plpgsql'; +COMMENT ON FUNCTION actor.change_password(INT,TEXT,TEXT) IS $$ +Allows setting a salted password for a user by passing actor.usr id and the text of the password. +$$; + COMMIT; -- 2.11.0