aboutsummaryrefslogtreecommitdiffstats
path: root/pysite/migrations/tables/oauth_data/v1.py
diff options
context:
space:
mode:
authorGravatar Gareth Coles <[email protected]>2018-08-07 15:09:08 +0100
committerGravatar Gareth Coles <[email protected]>2018-08-07 15:09:16 +0100
commitaf54db6c136138c66cf5ca72419989525a0baa5c (patch)
tree8519aeab8d45277c51797c7dc23aacf3b56ed1bb /pysite/migrations/tables/oauth_data/v1.py
parentA wizard is never late, nor is he early. (diff)
Initial project layout for django
Diffstat (limited to 'pysite/migrations/tables/oauth_data/v1.py')
-rw-r--r--pysite/migrations/tables/oauth_data/v1.py13
1 files changed, 0 insertions, 13 deletions
diff --git a/pysite/migrations/tables/oauth_data/v1.py b/pysite/migrations/tables/oauth_data/v1.py
deleted file mode 100644
index 9ace6bf9..00000000
--- a/pysite/migrations/tables/oauth_data/v1.py
+++ /dev/null
@@ -1,13 +0,0 @@
-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"))
- except ReqlOpFailedError:
- print("Index already exists.")