diff --git a/src/api/app/models/event/appeal_created.rb b/src/api/app/models/event/appeal_created.rb index 160812de70f..28e7d627e93 100644 --- a/src/api/app/models/event/appeal_created.rb +++ b/src/api/app/models/event/appeal_created.rb @@ -20,7 +20,7 @@ def subject # id :bigint not null, primary key # eventtype :string(255) not null, indexed # mails_sent :boolean default(FALSE), indexed -# payload :text(65535) +# payload :text(16777215) # undone_jobs :integer default(0) # created_at :datetime indexed # updated_at :datetime diff --git a/src/api/app/models/event/base.rb b/src/api/app/models/event/base.rb index ba1cb441f2c..fc15461026e 100644 --- a/src/api/app/models/event/base.rb +++ b/src/api/app/models/event/base.rb @@ -399,7 +399,7 @@ def subject_to_title # id :bigint not null, primary key # eventtype :string(255) not null, indexed # mails_sent :boolean default(FALSE), indexed -# payload :text(65535) +# payload :text(16777215) # undone_jobs :integer default(0) # created_at :datetime indexed # updated_at :datetime diff --git a/src/api/app/models/event/branch_command.rb b/src/api/app/models/event/branch_command.rb index 05f677cc35f..b41728c4d94 100644 --- a/src/api/app/models/event/branch_command.rb +++ b/src/api/app/models/event/branch_command.rb @@ -17,7 +17,7 @@ def subject # id :bigint not null, primary key # eventtype :string(255) not null, indexed # mails_sent :boolean default(FALSE), indexed -# payload :text(65535) +# payload :text(16777215) # undone_jobs :integer default(0) # created_at :datetime indexed # updated_at :datetime diff --git a/src/api/app/models/event/build_fail.rb b/src/api/app/models/event/build_fail.rb index 24930c55af9..94a804021f8 100644 --- a/src/api/app/models/event/build_fail.rb +++ b/src/api/app/models/event/build_fail.rb @@ -59,7 +59,7 @@ def reencode_faillog(faillog) # id :bigint not null, primary key # eventtype :string(255) not null, indexed # mails_sent :boolean default(FALSE), indexed -# payload :text(65535) +# payload :text(16777215) # undone_jobs :integer default(0) # created_at :datetime indexed # updated_at :datetime diff --git a/src/api/app/models/event/build_success.rb b/src/api/app/models/event/build_success.rb index b85fa7f790f..23e0131a3a2 100644 --- a/src/api/app/models/event/build_success.rb +++ b/src/api/app/models/event/build_success.rb @@ -18,7 +18,7 @@ def state # id :bigint not null, primary key # eventtype :string(255) not null, indexed # mails_sent :boolean default(FALSE), indexed -# payload :text(65535) +# payload :text(16777215) # undone_jobs :integer default(0) # created_at :datetime indexed # updated_at :datetime diff --git a/src/api/app/models/event/build_unchanged.rb b/src/api/app/models/event/build_unchanged.rb index 5da0169125a..971c66e9a5c 100644 --- a/src/api/app/models/event/build_unchanged.rb +++ b/src/api/app/models/event/build_unchanged.rb @@ -16,7 +16,7 @@ def state # id :bigint not null, primary key # eventtype :string(255) not null, indexed # mails_sent :boolean default(FALSE), indexed -# payload :text(65535) +# payload :text(16777215) # undone_jobs :integer default(0) # created_at :datetime indexed # updated_at :datetime diff --git a/src/api/app/models/event/cleared_decision.rb b/src/api/app/models/event/cleared_decision.rb index ace7d57fdea..f60826d0293 100644 --- a/src/api/app/models/event/cleared_decision.rb +++ b/src/api/app/models/event/cleared_decision.rb @@ -23,7 +23,7 @@ def parameters_for_notification # id :bigint not null, primary key # eventtype :string(255) not null, indexed # mails_sent :boolean default(FALSE), indexed -# payload :text(65535) +# payload :text(16777215) # undone_jobs :integer default(0) # created_at :datetime indexed # updated_at :datetime diff --git a/src/api/app/models/event/comment_for_package.rb b/src/api/app/models/event/comment_for_package.rb index befa387af02..d63be5539c8 100644 --- a/src/api/app/models/event/comment_for_package.rb +++ b/src/api/app/models/event/comment_for_package.rb @@ -19,7 +19,7 @@ def subject # id :bigint not null, primary key # eventtype :string(255) not null, indexed # mails_sent :boolean default(FALSE), indexed -# payload :text(65535) +# payload :text(16777215) # undone_jobs :integer default(0) # created_at :datetime indexed # updated_at :datetime diff --git a/src/api/app/models/event/comment_for_project.rb b/src/api/app/models/event/comment_for_project.rb index afb97d98354..57865f4351d 100644 --- a/src/api/app/models/event/comment_for_project.rb +++ b/src/api/app/models/event/comment_for_project.rb @@ -19,7 +19,7 @@ def subject # id :bigint not null, primary key # eventtype :string(255) not null, indexed # mails_sent :boolean default(FALSE), indexed -# payload :text(65535) +# payload :text(16777215) # undone_jobs :integer default(0) # created_at :datetime indexed # updated_at :datetime diff --git a/src/api/app/models/event/comment_for_request.rb b/src/api/app/models/event/comment_for_request.rb index f6ffc5c1ae5..f68a4105775 100644 --- a/src/api/app/models/event/comment_for_request.rb +++ b/src/api/app/models/event/comment_for_request.rb @@ -39,7 +39,7 @@ def metric_fields # id :bigint not null, primary key # eventtype :string(255) not null, indexed # mails_sent :boolean default(FALSE), indexed -# payload :text(65535) +# payload :text(16777215) # undone_jobs :integer default(0) # created_at :datetime indexed # updated_at :datetime diff --git a/src/api/app/models/event/commit.rb b/src/api/app/models/event/commit.rb index f28b2ae792e..002b454d49c 100644 --- a/src/api/app/models/event/commit.rb +++ b/src/api/app/models/event/commit.rb @@ -32,7 +32,7 @@ def increase_commits # id :bigint not null, primary key # eventtype :string(255) not null, indexed # mails_sent :boolean default(FALSE), indexed -# payload :text(65535) +# payload :text(16777215) # undone_jobs :integer default(0) # created_at :datetime indexed # updated_at :datetime diff --git a/src/api/app/models/event/container_published.rb b/src/api/app/models/event/container_published.rb index fcc58317774..c4572111575 100644 --- a/src/api/app/models/event/container_published.rb +++ b/src/api/app/models/event/container_published.rb @@ -13,7 +13,7 @@ class ContainerPublished < Base # id :bigint not null, primary key # eventtype :string(255) not null, indexed # mails_sent :boolean default(FALSE), indexed -# payload :text(65535) +# payload :text(16777215) # undone_jobs :integer default(0) # created_at :datetime indexed # updated_at :datetime diff --git a/src/api/app/models/event/create_package.rb b/src/api/app/models/event/create_package.rb index 2812408a53f..c83df69da5d 100644 --- a/src/api/app/models/event/create_package.rb +++ b/src/api/app/models/event/create_package.rb @@ -27,7 +27,7 @@ def metric_fields # id :bigint not null, primary key # eventtype :string(255) not null, indexed # mails_sent :boolean default(FALSE), indexed -# payload :text(65535) +# payload :text(16777215) # undone_jobs :integer default(0) # created_at :datetime indexed # updated_at :datetime diff --git a/src/api/app/models/event/create_project.rb b/src/api/app/models/event/create_project.rb index 9b0541027a4..dea68e94943 100644 --- a/src/api/app/models/event/create_project.rb +++ b/src/api/app/models/event/create_project.rb @@ -27,7 +27,7 @@ def metric_fields # id :bigint not null, primary key # eventtype :string(255) not null, indexed # mails_sent :boolean default(FALSE), indexed -# payload :text(65535) +# payload :text(16777215) # undone_jobs :integer default(0) # created_at :datetime indexed # updated_at :datetime diff --git a/src/api/app/models/event/create_report.rb b/src/api/app/models/event/create_report.rb index 235c8159b00..ce1b67f176b 100644 --- a/src/api/app/models/event/create_report.rb +++ b/src/api/app/models/event/create_report.rb @@ -19,7 +19,7 @@ def parameters_for_notification # id :bigint not null, primary key # eventtype :string(255) not null, indexed # mails_sent :boolean default(FALSE), indexed -# payload :text(65535) +# payload :text(16777215) # undone_jobs :integer default(0) # created_at :datetime indexed # updated_at :datetime diff --git a/src/api/app/models/event/delete_package.rb b/src/api/app/models/event/delete_package.rb index 34cd45d4b87..86c561115b2 100644 --- a/src/api/app/models/event/delete_package.rb +++ b/src/api/app/models/event/delete_package.rb @@ -28,7 +28,7 @@ def metric_fields # id :bigint not null, primary key # eventtype :string(255) not null, indexed # mails_sent :boolean default(FALSE), indexed -# payload :text(65535) +# payload :text(16777215) # undone_jobs :integer default(0) # created_at :datetime indexed # updated_at :datetime diff --git a/src/api/app/models/event/delete_project.rb b/src/api/app/models/event/delete_project.rb index 8d3c2c76a3c..0e233302b5d 100644 --- a/src/api/app/models/event/delete_project.rb +++ b/src/api/app/models/event/delete_project.rb @@ -23,7 +23,7 @@ def metric_fields # id :bigint not null, primary key # eventtype :string(255) not null, indexed # mails_sent :boolean default(FALSE), indexed -# payload :text(65535) +# payload :text(16777215) # undone_jobs :integer default(0) # created_at :datetime indexed # updated_at :datetime diff --git a/src/api/app/models/event/favored_decision.rb b/src/api/app/models/event/favored_decision.rb index 3579634c09d..cadce81f3b4 100644 --- a/src/api/app/models/event/favored_decision.rb +++ b/src/api/app/models/event/favored_decision.rb @@ -23,7 +23,7 @@ def parameters_for_notification # id :bigint not null, primary key # eventtype :string(255) not null, indexed # mails_sent :boolean default(FALSE), indexed -# payload :text(65535) +# payload :text(16777215) # undone_jobs :integer default(0) # created_at :datetime indexed # updated_at :datetime diff --git a/src/api/app/models/event/packtrack.rb b/src/api/app/models/event/packtrack.rb index 031bcc9321b..bdd6d704a3f 100644 --- a/src/api/app/models/event/packtrack.rb +++ b/src/api/app/models/event/packtrack.rb @@ -16,7 +16,7 @@ class Packtrack < Base # id :bigint not null, primary key # eventtype :string(255) not null, indexed # mails_sent :boolean default(FALSE), indexed -# payload :text(65535) +# payload :text(16777215) # undone_jobs :integer default(0) # created_at :datetime indexed # updated_at :datetime diff --git a/src/api/app/models/event/relationship_create.rb b/src/api/app/models/event/relationship_create.rb index 2cf4ae020c4..7156d242964 100644 --- a/src/api/app/models/event/relationship_create.rb +++ b/src/api/app/models/event/relationship_create.rb @@ -14,7 +14,7 @@ class RelationshipCreate < Relationship # id :bigint not null, primary key # eventtype :string(255) not null, indexed # mails_sent :boolean default(FALSE), indexed -# payload :text(65535) +# payload :text(16777215) # undone_jobs :integer default(0) # created_at :datetime indexed # updated_at :datetime diff --git a/src/api/app/models/event/relationship_delete.rb b/src/api/app/models/event/relationship_delete.rb index 836271d9b81..7ae400b732a 100644 --- a/src/api/app/models/event/relationship_delete.rb +++ b/src/api/app/models/event/relationship_delete.rb @@ -14,7 +14,7 @@ class RelationshipDelete < Relationship # id :bigint not null, primary key # eventtype :string(255) not null, indexed # mails_sent :boolean default(FALSE), indexed -# payload :text(65535) +# payload :text(16777215) # undone_jobs :integer default(0) # created_at :datetime indexed # updated_at :datetime diff --git a/src/api/app/models/event/repo_build_finished.rb b/src/api/app/models/event/repo_build_finished.rb index 9d10af110b6..cbd27a355ae 100644 --- a/src/api/app/models/event/repo_build_finished.rb +++ b/src/api/app/models/event/repo_build_finished.rb @@ -25,7 +25,7 @@ def clear_caches # id :bigint not null, primary key # eventtype :string(255) not null, indexed # mails_sent :boolean default(FALSE), indexed -# payload :text(65535) +# payload :text(16777215) # undone_jobs :integer default(0) # created_at :datetime indexed # updated_at :datetime diff --git a/src/api/app/models/event/repo_build_started.rb b/src/api/app/models/event/repo_build_started.rb index fb2df7694d6..ecb4898c854 100644 --- a/src/api/app/models/event/repo_build_started.rb +++ b/src/api/app/models/event/repo_build_started.rb @@ -25,7 +25,7 @@ def clear_caches # id :bigint not null, primary key # eventtype :string(255) not null, indexed # mails_sent :boolean default(FALSE), indexed -# payload :text(65535) +# payload :text(16777215) # undone_jobs :integer default(0) # created_at :datetime indexed # updated_at :datetime diff --git a/src/api/app/models/event/repo_publish_state.rb b/src/api/app/models/event/repo_publish_state.rb index 80a7e809b24..927e05dd6ae 100644 --- a/src/api/app/models/event/repo_publish_state.rb +++ b/src/api/app/models/event/repo_publish_state.rb @@ -13,7 +13,7 @@ class RepoPublishState < Base # id :bigint not null, primary key # eventtype :string(255) not null, indexed # mails_sent :boolean default(FALSE), indexed -# payload :text(65535) +# payload :text(16777215) # undone_jobs :integer default(0) # created_at :datetime indexed # updated_at :datetime diff --git a/src/api/app/models/event/repo_published.rb b/src/api/app/models/event/repo_published.rb index 357105b33ed..70a5476850d 100644 --- a/src/api/app/models/event/repo_published.rb +++ b/src/api/app/models/event/repo_published.rb @@ -24,7 +24,7 @@ def clear_caches # id :bigint not null, primary key # eventtype :string(255) not null, indexed # mails_sent :boolean default(FALSE), indexed -# payload :text(65535) +# payload :text(16777215) # undone_jobs :integer default(0) # created_at :datetime indexed # updated_at :datetime diff --git a/src/api/app/models/event/report.rb b/src/api/app/models/event/report.rb index 4793f1bb289..de0544fc4ab 100644 --- a/src/api/app/models/event/report.rb +++ b/src/api/app/models/event/report.rb @@ -18,7 +18,7 @@ def parameters_for_notification # id :bigint not null, primary key # eventtype :string(255) not null, indexed # mails_sent :boolean default(FALSE), indexed -# payload :text(65535) +# payload :text(16777215) # undone_jobs :integer default(0) # created_at :datetime indexed # updated_at :datetime diff --git a/src/api/app/models/event/report_for_comment.rb b/src/api/app/models/event/report_for_comment.rb index 77b1e4e37d7..f9a88a042f4 100644 --- a/src/api/app/models/event/report_for_comment.rb +++ b/src/api/app/models/event/report_for_comment.rb @@ -13,7 +13,7 @@ class ReportForComment < Report # id :bigint not null, primary key # eventtype :string(255) not null, indexed # mails_sent :boolean default(FALSE), indexed -# payload :text(65535) +# payload :text(16777215) # undone_jobs :integer default(0) # created_at :datetime indexed # updated_at :datetime diff --git a/src/api/app/models/event/report_for_package.rb b/src/api/app/models/event/report_for_package.rb index b5fd76ab7ae..5792cfaaaa2 100644 --- a/src/api/app/models/event/report_for_package.rb +++ b/src/api/app/models/event/report_for_package.rb @@ -25,7 +25,7 @@ def self.notification_link_text(payload) # id :bigint not null, primary key # eventtype :string(255) not null, indexed # mails_sent :boolean default(FALSE), indexed -# payload :text(65535) +# payload :text(16777215) # undone_jobs :integer default(0) # created_at :datetime indexed # updated_at :datetime diff --git a/src/api/app/models/event/report_for_project.rb b/src/api/app/models/event/report_for_project.rb index 3a9ec567a89..a7afa5c2b4f 100644 --- a/src/api/app/models/event/report_for_project.rb +++ b/src/api/app/models/event/report_for_project.rb @@ -21,7 +21,7 @@ def self.notification_link_text(payload) # id :bigint not null, primary key # eventtype :string(255) not null, indexed # mails_sent :boolean default(FALSE), indexed -# payload :text(65535) +# payload :text(16777215) # undone_jobs :integer default(0) # created_at :datetime indexed # updated_at :datetime diff --git a/src/api/app/models/event/report_for_request.rb b/src/api/app/models/event/report_for_request.rb index ed1373da123..c913b2f874a 100644 --- a/src/api/app/models/event/report_for_request.rb +++ b/src/api/app/models/event/report_for_request.rb @@ -12,7 +12,7 @@ class ReportForRequest < Report # id :bigint not null, primary key # eventtype :string(255) not null, indexed # mails_sent :boolean default(FALSE), indexed -# payload :text(65535) +# payload :text(16777215) # undone_jobs :integer default(0) # created_at :datetime indexed # updated_at :datetime diff --git a/src/api/app/models/event/report_for_user.rb b/src/api/app/models/event/report_for_user.rb index a5a4b118b33..5baeb23cdd4 100644 --- a/src/api/app/models/event/report_for_user.rb +++ b/src/api/app/models/event/report_for_user.rb @@ -12,7 +12,7 @@ class ReportForUser < Report # id :bigint not null, primary key # eventtype :string(255) not null, indexed # mails_sent :boolean default(FALSE), indexed -# payload :text(65535) +# payload :text(16777215) # undone_jobs :integer default(0) # created_at :datetime indexed # updated_at :datetime diff --git a/src/api/app/models/event/request_change.rb b/src/api/app/models/event/request_change.rb index 9499312e01e..d5843311757 100644 --- a/src/api/app/models/event/request_change.rb +++ b/src/api/app/models/event/request_change.rb @@ -12,7 +12,7 @@ class RequestChange < Request # id :bigint not null, primary key # eventtype :string(255) not null, indexed # mails_sent :boolean default(FALSE), indexed -# payload :text(65535) +# payload :text(16777215) # undone_jobs :integer default(0) # created_at :datetime indexed # updated_at :datetime diff --git a/src/api/app/models/event/request_create.rb b/src/api/app/models/event/request_create.rb index 5013b68abc5..d1d628c3051 100644 --- a/src/api/app/models/event/request_create.rb +++ b/src/api/app/models/event/request_create.rb @@ -40,7 +40,7 @@ def metric_fields # id :bigint not null, primary key # eventtype :string(255) not null, indexed # mails_sent :boolean default(FALSE), indexed -# payload :text(65535) +# payload :text(16777215) # undone_jobs :integer default(0) # created_at :datetime indexed # updated_at :datetime diff --git a/src/api/app/models/event/request_delete.rb b/src/api/app/models/event/request_delete.rb index b239574bdc1..c2ee61822e4 100644 --- a/src/api/app/models/event/request_delete.rb +++ b/src/api/app/models/event/request_delete.rb @@ -12,7 +12,7 @@ class RequestDelete < Request # id :bigint not null, primary key # eventtype :string(255) not null, indexed # mails_sent :boolean default(FALSE), indexed -# payload :text(65535) +# payload :text(16777215) # undone_jobs :integer default(0) # created_at :datetime indexed # updated_at :datetime diff --git a/src/api/app/models/event/request_reviews_done.rb b/src/api/app/models/event/request_reviews_done.rb index 04ea001a85c..7554afc39a7 100644 --- a/src/api/app/models/event/request_reviews_done.rb +++ b/src/api/app/models/event/request_reviews_done.rb @@ -16,7 +16,7 @@ def subject # id :bigint not null, primary key # eventtype :string(255) not null, indexed # mails_sent :boolean default(FALSE), indexed -# payload :text(65535) +# payload :text(16777215) # undone_jobs :integer default(0) # created_at :datetime indexed # updated_at :datetime diff --git a/src/api/app/models/event/request_statechange.rb b/src/api/app/models/event/request_statechange.rb index e85727f0f19..c6a7d50d5a7 100644 --- a/src/api/app/models/event/request_statechange.rb +++ b/src/api/app/models/event/request_statechange.rb @@ -37,7 +37,7 @@ def metric_fields # id :bigint not null, primary key # eventtype :string(255) not null, indexed # mails_sent :boolean default(FALSE), indexed -# payload :text(65535) +# payload :text(16777215) # undone_jobs :integer default(0) # created_at :datetime indexed # updated_at :datetime diff --git a/src/api/app/models/event/review_changed.rb b/src/api/app/models/event/review_changed.rb index f11a966e64b..4eb77ef8987 100644 --- a/src/api/app/models/event/review_changed.rb +++ b/src/api/app/models/event/review_changed.rb @@ -26,7 +26,7 @@ def custom_headers # id :bigint not null, primary key # eventtype :string(255) not null, indexed # mails_sent :boolean default(FALSE), indexed -# payload :text(65535) +# payload :text(16777215) # undone_jobs :integer default(0) # created_at :datetime indexed # updated_at :datetime diff --git a/src/api/app/models/event/review_wanted.rb b/src/api/app/models/event/review_wanted.rb index 2f3313847cc..3317bdebb2a 100644 --- a/src/api/app/models/event/review_wanted.rb +++ b/src/api/app/models/event/review_wanted.rb @@ -36,7 +36,7 @@ def parameters_for_notification # id :bigint not null, primary key # eventtype :string(255) not null, indexed # mails_sent :boolean default(FALSE), indexed -# payload :text(65535) +# payload :text(16777215) # undone_jobs :integer default(0) # created_at :datetime indexed # updated_at :datetime diff --git a/src/api/app/models/event/service_fail.rb b/src/api/app/models/event/service_fail.rb index f70d6b3fd1d..67f66a35113 100644 --- a/src/api/app/models/event/service_fail.rb +++ b/src/api/app/models/event/service_fail.rb @@ -57,7 +57,7 @@ def metric_fields # id :bigint not null, primary key # eventtype :string(255) not null, indexed # mails_sent :boolean default(FALSE), indexed -# payload :text(65535) +# payload :text(16777215) # undone_jobs :integer default(0) # created_at :datetime indexed # updated_at :datetime diff --git a/src/api/app/models/event/service_success.rb b/src/api/app/models/event/service_success.rb index b940fb68ffa..7146ef8aa58 100644 --- a/src/api/app/models/event/service_success.rb +++ b/src/api/app/models/event/service_success.rb @@ -39,7 +39,7 @@ def metric_fields # id :bigint not null, primary key # eventtype :string(255) not null, indexed # mails_sent :boolean default(FALSE), indexed -# payload :text(65535) +# payload :text(16777215) # undone_jobs :integer default(0) # created_at :datetime indexed # updated_at :datetime diff --git a/src/api/app/models/event/status_check_for_build.rb b/src/api/app/models/event/status_check_for_build.rb index 4a5c1e70d8a..5ac6b8ca141 100644 --- a/src/api/app/models/event/status_check_for_build.rb +++ b/src/api/app/models/event/status_check_for_build.rb @@ -13,7 +13,7 @@ class StatusCheckForBuild < StatusCheck # id :bigint not null, primary key # eventtype :string(255) not null, indexed # mails_sent :boolean default(FALSE), indexed -# payload :text(65535) +# payload :text(16777215) # undone_jobs :integer default(0) # created_at :datetime indexed # updated_at :datetime diff --git a/src/api/app/models/event/status_check_for_published.rb b/src/api/app/models/event/status_check_for_published.rb index bf46fb529ce..9d6d223233a 100644 --- a/src/api/app/models/event/status_check_for_published.rb +++ b/src/api/app/models/event/status_check_for_published.rb @@ -13,7 +13,7 @@ class StatusCheckForPublished < StatusCheck # id :bigint not null, primary key # eventtype :string(255) not null, indexed # mails_sent :boolean default(FALSE), indexed -# payload :text(65535) +# payload :text(16777215) # undone_jobs :integer default(0) # created_at :datetime indexed # updated_at :datetime diff --git a/src/api/app/models/event/status_check_for_request.rb b/src/api/app/models/event/status_check_for_request.rb index 12125eb0af2..d23807f84dc 100644 --- a/src/api/app/models/event/status_check_for_request.rb +++ b/src/api/app/models/event/status_check_for_request.rb @@ -12,7 +12,7 @@ class StatusCheckForRequest < StatusCheck # id :bigint not null, primary key # eventtype :string(255) not null, indexed # mails_sent :boolean default(FALSE), indexed -# payload :text(65535) +# payload :text(16777215) # undone_jobs :integer default(0) # created_at :datetime indexed # updated_at :datetime diff --git a/src/api/app/models/event/undelete_package.rb b/src/api/app/models/event/undelete_package.rb index be9720479ba..310347d5981 100644 --- a/src/api/app/models/event/undelete_package.rb +++ b/src/api/app/models/event/undelete_package.rb @@ -19,7 +19,7 @@ def set_payload(attribs, keys) # id :bigint not null, primary key # eventtype :string(255) not null, indexed # mails_sent :boolean default(FALSE), indexed -# payload :text(65535) +# payload :text(16777215) # undone_jobs :integer default(0) # created_at :datetime indexed # updated_at :datetime diff --git a/src/api/app/models/event/undelete_project.rb b/src/api/app/models/event/undelete_project.rb index fab2612d05f..ea9eca8f1a1 100644 --- a/src/api/app/models/event/undelete_project.rb +++ b/src/api/app/models/event/undelete_project.rb @@ -13,7 +13,7 @@ class UndeleteProject < Base # id :bigint not null, primary key # eventtype :string(255) not null, indexed # mails_sent :boolean default(FALSE), indexed -# payload :text(65535) +# payload :text(16777215) # undone_jobs :integer default(0) # created_at :datetime indexed # updated_at :datetime diff --git a/src/api/app/models/event/update_package.rb b/src/api/app/models/event/update_package.rb index 1de5ae9ee9e..b8ccae6173f 100644 --- a/src/api/app/models/event/update_package.rb +++ b/src/api/app/models/event/update_package.rb @@ -13,7 +13,7 @@ class UpdatePackage < Base # id :bigint not null, primary key # eventtype :string(255) not null, indexed # mails_sent :boolean default(FALSE), indexed -# payload :text(65535) +# payload :text(16777215) # undone_jobs :integer default(0) # created_at :datetime indexed # updated_at :datetime diff --git a/src/api/app/models/event/update_project.rb b/src/api/app/models/event/update_project.rb index 368c14913f4..8ce83ced177 100644 --- a/src/api/app/models/event/update_project.rb +++ b/src/api/app/models/event/update_project.rb @@ -13,7 +13,7 @@ class UpdateProject < Base # id :bigint not null, primary key # eventtype :string(255) not null, indexed # mails_sent :boolean default(FALSE), indexed -# payload :text(65535) +# payload :text(16777215) # undone_jobs :integer default(0) # created_at :datetime indexed # updated_at :datetime diff --git a/src/api/app/models/event/update_project_config.rb b/src/api/app/models/event/update_project_config.rb index 4584535ffd7..56952bd31f1 100644 --- a/src/api/app/models/event/update_project_config.rb +++ b/src/api/app/models/event/update_project_config.rb @@ -13,7 +13,7 @@ class UpdateProjectConfig < Base # id :bigint not null, primary key # eventtype :string(255) not null, indexed # mails_sent :boolean default(FALSE), indexed -# payload :text(65535) +# payload :text(16777215) # undone_jobs :integer default(0) # created_at :datetime indexed # updated_at :datetime diff --git a/src/api/app/models/event/upload.rb b/src/api/app/models/event/upload.rb index e64af36c95d..fe728a6ef92 100644 --- a/src/api/app/models/event/upload.rb +++ b/src/api/app/models/event/upload.rb @@ -13,7 +13,7 @@ class Upload < Base # id :bigint not null, primary key # eventtype :string(255) not null, indexed # mails_sent :boolean default(FALSE), indexed -# payload :text(65535) +# payload :text(16777215) # undone_jobs :integer default(0) # created_at :datetime indexed # updated_at :datetime diff --git a/src/api/app/models/event/version_change.rb b/src/api/app/models/event/version_change.rb index 6520e637f60..53dbbbbc726 100644 --- a/src/api/app/models/event/version_change.rb +++ b/src/api/app/models/event/version_change.rb @@ -19,7 +19,7 @@ def set_payload(attribs, keys) # id :bigint not null, primary key # eventtype :string(255) not null, indexed # mails_sent :boolean default(FALSE), indexed -# payload :text(65535) +# payload :text(16777215) # undone_jobs :integer default(0) # created_at :datetime indexed # updated_at :datetime diff --git a/src/api/app/models/event/workflow_run_fail.rb b/src/api/app/models/event/workflow_run_fail.rb index 6a8ff5fb232..88cb8b26684 100644 --- a/src/api/app/models/event/workflow_run_fail.rb +++ b/src/api/app/models/event/workflow_run_fail.rb @@ -29,7 +29,7 @@ def parameters_for_notification # id :bigint not null, primary key # eventtype :string(255) not null, indexed # mails_sent :boolean default(FALSE), indexed -# payload :text(65535) +# payload :text(16777215) # undone_jobs :integer default(0) # created_at :datetime indexed # updated_at :datetime diff --git a/src/api/db/migrate/20240119114738_change_events_payload_from_text_to_mediumtext.rb b/src/api/db/migrate/20240119114738_change_events_payload_from_text_to_mediumtext.rb new file mode 100644 index 00000000000..2603eac386c --- /dev/null +++ b/src/api/db/migrate/20240119114738_change_events_payload_from_text_to_mediumtext.rb @@ -0,0 +1,11 @@ +class ChangeEventsPayloadFromTextToMediumtext < ActiveRecord::Migration[7.0] + def self.up + safety_assured { change_column :events, :payload, :text, limit: 16.megabytes - 1 } + end + + def self.down + # NOTE: change back to TEXT could cut some payloads that could be more than 65535 characters. + # From TEXT to MEDIUMTEXT we could store from ~64kb to ~16Mb of data but basically nothing has + # a payload more than ~64kb so the event payload nearly should be always around 64kb. + end +end diff --git a/src/api/db/schema.rb b/src/api/db/schema.rb index f886343b497..55d86b5932e 100644 --- a/src/api/db/schema.rb +++ b/src/api/db/schema.rb @@ -478,7 +478,7 @@ create_table "events", charset: "utf8mb4", collation: "utf8mb4_unicode_ci", options: "ENGINE=InnoDB ROW_FORMAT=DYNAMIC", force: :cascade do |t| t.string "eventtype", null: false - t.text "payload" + t.text "payload", size: :medium t.datetime "created_at", precision: nil t.datetime "updated_at" t.integer "undone_jobs", default: 0