Bug 1510605
| Summary: | PG String Data Right Truncation error: Value too long for type character varying(255) | |||
|---|---|---|---|---|
| Product: | Red Hat CloudForms Management Engine | Reporter: | myoder | |
| Component: | Appliance | Assignee: | Yuri Rudman <yrudman> | |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Dave Johnson <dajohnso> | |
| Severity: | high | Docs Contact: | ||
| Priority: | high | |||
| Version: | 5.8.0 | CC: | abellott, jhardy, obarenbo, yrudman | |
| Target Milestone: | GA | Keywords: | TestOnly | |
| Target Release: | 5.10.0 | |||
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | 5.10.0.0 | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 1513123 1513124 (view as bug list) | Environment: | ||
| Last Closed: | 2018-06-21 21:05:34 UTC | Type: | Bug | |
| Regression: | --- | Mount Type: | --- | |
| Documentation: | --- | CRM: | ||
| Verified Versions: | Category: | --- | ||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
| Cloudforms Team: | --- | Target Upstream Version: | ||
| Embargoed: | ||||
| Bug Depends On: | ||||
| Bug Blocks: | 1513123, 1513124 | |||
|
Description
myoder
2017-11-07 19:24:09 UTC
New commit detected on ManageIQ/manageiq/master: https://github.com/ManageIQ/manageiq/commit/6c9b9a2a18eca950501ab88b0ffea134751b313f commit 6c9b9a2a18eca950501ab88b0ffea134751b313f Author: Yuri Rudman <yrudman> AuthorDate: Fri Nov 10 12:04:54 2017 -0500 Commit: Yuri Rudman <yrudman> CommitDate: Mon Nov 13 08:47:31 2017 -0500 truncate task name to 255 symbols when creating refresh task https://bugzilla.redhat.com/show_bug.cgi?id=1510605 app/models/ems_refresh.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) New commit detected on ManageIQ/manageiq-schema/master: https://github.com/ManageIQ/manageiq-schema/commit/38377624beeded48d7b02b97a31cd80bc4adac14 commit 38377624beeded48d7b02b97a31cd80bc4adac14 Author: Nick Carboni <ncarboni> AuthorDate: Thu Nov 9 18:05:34 2017 -0500 Commit: Nick Carboni <ncarboni> CommitDate: Fri Nov 10 10:32:25 2017 -0500 Remove the limit from string columns in all tables In older versions of activerecord "t.string" columns without an explicit limit were limited to 255 by default. In newer versions that limit has been removed. This is creating a discrepancy between databases which have been migrated through the older versions of activerecord and ones which were newly created. This causes difficult to diagnose bugs for no reason. https://bugzilla.redhat.com/show_bug.cgi?id=1510605 .../20171109225052_remove_string_column_limits.rb | 10 +++++++++ ...71109225052_remove_string_column_limits_spec.rb | 25 ++++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 db/migrate/20171109225052_remove_string_column_limits.rb create mode 100644 spec/migrations/20171109225052_remove_string_column_limits_spec.rb |