Skip to content

Commit

Permalink
fix(migrations) proper downgrade colomn removal for Cassandra
Browse files Browse the repository at this point in the history
Cassandra does not support the `COLUMN IF EXISTS` conditionals
like Postgres does. This appears to have been a copy/paste gone wrong.

From Kong#2750
  • Loading branch information
Tieske authored and thibaultcha committed Jul 31, 2017
1 parent 2461e04 commit a0bddb5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions kong/dao/migrations/cassandra.lua
Original file line number Diff line number Diff line change
Expand Up @@ -390,9 +390,9 @@ return {
ALTER TABLE apis ADD upstream_read_timeout int;
]],
down = [[
ALTER TABLE apis DROP COLUMN IF EXISTS upstream_connect_timeout;
ALTER TABLE apis DROP COLUMN IF EXISTS upstream_send_timeout;
ALTER TABLE apis DROP COLUMN IF EXISTS upstream_read_timeout;
ALTER TABLE apis DROP upstream_connect_timeout;
ALTER TABLE apis DROP upstream_send_timeout;
ALTER TABLE apis DROP upstream_read_timeout;
]]
},
{
Expand Down

0 comments on commit a0bddb5

Please sign in to comment.