Skip to content

Commit

Permalink
increase custom header len to 6000 and migrated db (#903)
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagoshin authored Dec 1, 2023
1 parent 08965fe commit 5ec913c
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/models/search_endpoint.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# api_method :string(255)
# archived :boolean default(FALSE)
# basic_auth_credential :string(255)
# custom_headers :string(1000)
# custom_headers :string(6000)
# endpoint_url :string(500)
# mapper_code :text(65535)
# name :string(255)
Expand Down
5 changes: 5 additions & 0 deletions db/migrate/20231201201946_increase_custom_header_length.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class IncreaseCustomHeaderLength < ActiveRecord::Migration[7.1]
def change
change_column :search_endpoints, :custom_headers, :string, limit: 6000
end
end
4 changes: 2 additions & 2 deletions db/schema.rb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion test/fixtures/search_endpoints.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# api_method :string(255)
# archived :boolean default(FALSE)
# basic_auth_credential :string(255)
# custom_headers :string(1000)
# custom_headers :string(6000)
# endpoint_url :string(500)
# mapper_code :text(65535)
# name :string(255)
Expand Down
2 changes: 1 addition & 1 deletion test/models/search_endpoint_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# api_method :string(255)
# archived :boolean default(FALSE)
# basic_auth_credential :string(255)
# custom_headers :string(1000)
# custom_headers :string(6000)
# endpoint_url :string(500)
# mapper_code :text(65535)
# name :string(255)
Expand Down

0 comments on commit 5ec913c

Please sign in to comment.