Browse Source

Add db migrations for new basic auth fields

ivanbratovic/http-basicauth
Ivan Bratović 3 years ago
parent
commit
665c263c03
  1. 10
      db/patch-monitor-basicauth.sql
  2. 1
      server/database.js

10
db/patch-monitor-basicauth.sql

@ -0,0 +1,10 @@
-- You should not modify if this have pushed to Github, unless it does serious wrong with the db.
BEGIN TRANSACTION;
ALTER TABLE monitor
ADD basicauth_user TEXT default null;
ALTER TABLE monitor
ADD basicauth_pass TEXT default null;
COMMIT;

1
server/database.js

@ -52,6 +52,7 @@ class Database {
"patch-http-monitor-method-body-and-headers.sql": true,
"patch-2fa-invalidate-used-token.sql": true,
"patch-notification_sent_history.sql": true,
"patch-monitor-basicauth.sql": true,
}
/**

Loading…
Cancel
Save