Browse Source

Match all users.json file in userdb

shortcutme 5 years ago
parent
commit
6720ed6e01
1 changed files with 2 additions and 2 deletions
  1. 2 2
      dbschema.json

+ 2 - 2
dbschema.json

@@ -7,7 +7,7 @@
 			"to_json_table": [ "cert_auth_type", "cert_user_id" ],
 			"to_table": ["user"]
 		},
-		".+/data/userdb/users.json": {
+		".+/data/userdb/users.*json": {
 			"to_table": ["user"]
 		},
 		".+/data/users/.+/content.json": {
@@ -103,4 +103,4 @@
 		"Posts": "SELECT 'post' AS type, post.date_added AS date_added, 'In ' || json.user_name || \"'s post\" AS title, post.body AS body, '?Post/' || json.site || '/' || REPLACE(json.directory, 'data/users/', '') || '/' || post_id AS url FROM post LEFT JOIN json USING (json_id)",
 		"Comments": "SELECT 'comment' AS type, comment.date_added AS date_added, 'a post' AS title, '@' || user_name || ': ' || comment.body AS body, '?Post/' || json.site || '/' || REPLACE(post_uri, '_', '/') AS url FROM comment LEFT JOIN json USING (json_id)"
 	}
-}
+}