forked from Kong/kong
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding "preserve_host" flag to APIs, closes Kong#444
Former-commit-id: f97f9385bc5effa6d92be5f4279f5b7cd7f9e8d4
- Loading branch information
1 parent
291ccce
commit 78d96a6
Showing
5 changed files
with
50 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
local Migration = { | ||
name = "2015-08-21-813213_0.5.0", | ||
|
||
up = function(options) | ||
return [[ | ||
ALTER TABLE apis ADD preserve_host boolean; | ||
]] | ||
end, | ||
|
||
down = function(options) | ||
return [[ | ||
ALTER TABLE apis DROP preserve_host; | ||
]] | ||
end | ||
} | ||
|
||
return Migration |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters