From 23ce7c6623b01fd239ea90337358b95dbff1b9e8 Mon Sep 17 00:00:00 2001 From: Christopher Pickering Date: Fri, 13 May 2022 09:06:41 -0500 Subject: [PATCH] started db update script --- db/patch-add-other-auth.sql | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 db/patch-add-other-auth.sql diff --git a/db/patch-add-other-auth.sql b/db/patch-add-other-auth.sql new file mode 100644 index 000000000..93a1064c4 --- /dev/null +++ b/db/patch-add-other-auth.sql @@ -0,0 +1,15 @@ +BEGIN TRANSACTION; + + ALTER TABLE monitor + ADD auth_method VARCHAR(250); + + COMMIT + + +BEGIN TRANSACTION; + +UPDATE monitor + SET auth_method = 'basic' + WHERE basic_auth_user is not null + +COMMIT;