DB schema interface for password auth providers

Provide an interface by which password auth providers can register db schema
files to be run at startup
This commit is contained in:
Richard van der Hoff 2017-10-30 15:16:21 +00:00
parent c31a7c3ff6
commit 1650eb5847
3 changed files with 89 additions and 0 deletions

View file

@ -25,3 +25,10 @@ CREATE TABLE IF NOT EXISTS applied_schema_deltas(
file TEXT NOT NULL,
UNIQUE(version, file)
);
-- a list of schema files we have loaded on behalf of dynamic modules
CREATE TABLE IF NOT EXISTS applied_module_schemas(
module_name TEXT NOT NULL,
file TEXT NOT NULL,
UNIQUE(module_name, file)
);