summary refs log tree commit diff
path: root/synapse/storage/schema
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2017-10-30 15:16:21 +0000
committerRichard van der Hoff <richard@matrix.org>2017-10-31 14:01:53 +0000
commit1650eb584772dbad61d74c2b3c9c932a52fe1979 (patch)
tree35e4d79fe3ea8a8133a084c55c38341143f3fccd /synapse/storage/schema
parentMerge pull request #2609 from matrix-org/rav/refactor_login (diff)
downloadsynapse-1650eb584772dbad61d74c2b3c9c932a52fe1979.tar.xz
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
Diffstat (limited to 'synapse/storage/schema')
-rw-r--r--synapse/storage/schema/schema_version.sql7
1 files changed, 7 insertions, 0 deletions
diff --git a/synapse/storage/schema/schema_version.sql b/synapse/storage/schema/schema_version.sql
index a7ade69986..42e5cb6df5 100644
--- a/synapse/storage/schema/schema_version.sql
+++ b/synapse/storage/schema/schema_version.sql
@@ -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)
+);