From 10ddcbea3732b1c066458aea533480f2bb399ef5 Mon Sep 17 00:00:00 2001 From: Gareth Coles Date: Tue, 15 May 2018 20:17:53 +0100 Subject: Add snowflake index on oauth_data and use it for deletions We were using id previously, but that was no longer the correct key --- pysite/migrations/tables/oauth_data/v1.py | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 pysite/migrations/tables/oauth_data/v1.py (limited to 'pysite/migrations/tables/oauth_data/v1.py') 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")) -- cgit v1.2.3