aboutsummaryrefslogtreecommitdiffstats
path: root/pysite/migrations/tables/oauth_data/v1.py
diff options
context:
space:
mode:
Diffstat (limited to 'pysite/migrations/tables/oauth_data/v1.py')
-rw-r--r--pysite/migrations/tables/oauth_data/v1.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/pysite/migrations/tables/oauth_data/v1.py b/pysite/migrations/tables/oauth_data/v1.py
index dc7417bb..9ace6bf9 100644
--- a/pysite/migrations/tables/oauth_data/v1.py
+++ b/pysite/migrations/tables/oauth_data/v1.py
@@ -2,6 +2,10 @@ from rethinkdb import ReqlOpFailedError
def run(db, table, table_obj):
+ """
+ Create a secondary index on the "snowflake" key, so we can easily get documents by matching that key
+ """
+
try:
db.run(db.query(table).index_create("snowflake"))
db.run(db.query(table).index_wait("snowflake"))