diff options
author | 2018-05-15 20:17:53 +0100 | |
---|---|---|
committer | 2018-05-15 20:17:53 +0100 | |
commit | 10ddcbea3732b1c066458aea533480f2bb399ef5 (patch) | |
tree | ef721816385f4e049bd3271f7824bbfbe85285d7 /pysite/migrations/tables/oauth_data/v1.py | |
parent | Main site redirects should be 302s (diff) |
Add snowflake index on oauth_data and use it for deletions
We were using id previously, but that was no longer the correct key
Diffstat (limited to 'pysite/migrations/tables/oauth_data/v1.py')
-rw-r--r-- | pysite/migrations/tables/oauth_data/v1.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pysite/migrations/tables/oauth_data/v1.py b/pysite/migrations/tables/oauth_data/v1.py new file mode 100644 index 00000000..8448d8e5 --- /dev/null +++ b/pysite/migrations/tables/oauth_data/v1.py @@ -0,0 +1,3 @@ +def run(db, table, table_obj): + db.run(db.query(table).index_create("snowflake")) + db.run(db.query(table).index_wait("snowflake")) |