Skip to content

Commit

Permalink
Merge pull request #2848 from evanrolfe/migration/cache_lines_key_limit
Browse files Browse the repository at this point in the history
[api][webui] set cache_lines.key limit to 4096
  • Loading branch information
Moisés Déniz Alemán committed Mar 17, 2017
2 parents ba27c91 + e55c089 commit 66a679a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/api/db/migrate/20170317094221_change_cache_lines_key.rb
@@ -0,0 +1,5 @@
class ChangeCacheLinesKey < ActiveRecord::Migration[5.0]
def change
change_column(:cache_lines, :key, :string, limit: 4096)
end
end
3 changes: 2 additions & 1 deletion src/api/db/structure.sql
Expand Up @@ -263,7 +263,7 @@ CREATE TABLE `bs_requests` (

CREATE TABLE `cache_lines` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`key` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
`key` varchar(4096) COLLATE utf8_unicode_ci NOT NULL,
`package` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`project` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
`request` int(11) DEFAULT NULL,
Expand Down Expand Up @@ -1406,6 +1406,7 @@ INSERT INTO schema_migrations (version) VALUES
('20170306105300'),
('20170315190919'),
('20170315200936'),
('20170317094221'),
('21'),
('22'),
('23'),
Expand Down

0 comments on commit 66a679a

Please sign in to comment.