Skip to content

Commit

Permalink
Merge pull request Kong#275 from Mashape/fix/latest-migration
Browse files Browse the repository at this point in the history
[fix/migrations] name indexes

Former-commit-id: 63ef59d99c6e28ff3534d185d8bab08942cdff72
  • Loading branch information
thibaultcha committed May 29, 2015
2 parents c28c4d2 + 638a834 commit f420800
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit f420800

Please sign in to comment.