From a48ef56f0f2d906612c369fa92470f10822d0c42 Mon Sep 17 00:00:00 2001 From: Thibault Charbonnier Date: Fri, 29 May 2015 19:06:11 +0200 Subject: [PATCH] fix(migrations) name indexes --- .../cassandra/2015-05-22-235608_plugins_fix.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/database/migrations/cassandra/2015-05-22-235608_plugins_fix.lua b/database/migrations/cassandra/2015-05-22-235608_plugins_fix.lua index 993ea6a67fd..cbf14707d88 100644 --- a/database/migrations/cassandra/2015-05-22-235608_plugins_fix.lua +++ b/database/migrations/cassandra/2015-05-22-235608_plugins_fix.lua @@ -3,15 +3,15 @@ local Migration = { up = function(options) return [[ - CREATE INDEX IF NOT EXISTS ON keyauth_credentials(consumer_id); - CREATE INDEX IF NOT EXISTS ON basicauth_credentials(consumer_id); + CREATE INDEX IF NOT EXISTS keyauth_consumer_id ON keyauth_credentials(consumer_id); + CREATE INDEX IF NOT EXISTS basicauth_consumer_id ON basicauth_credentials(consumer_id); ]] end, down = function(options) return [[ - DROP INDEX keyauth_credentials_consumer_id_idx; - DROP INDEX basicauth_credentials_consumer_id_idx; + DROP INDEX keyauth_consumer_id; + DROP INDEX basicauth_consumer_id; ]] end }