Bug 526980
Summary: | checksetup.pl error when trying to add column profiles.password_last_changed | ||
---|---|---|---|
Product: | [Community] Bugzilla | Reporter: | David Lawrence <dkl> |
Component: | Database | Assignee: | Tony Fu <tfu> |
Status: | CLOSED NEXTRELEASE | QA Contact: | |
Severity: | medium | Docs Contact: | |
Priority: | low | ||
Version: | 3.4 | ||
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2009-10-19 07:03:07 UTC | Type: | --- |
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: | 520523 |
Description
David Lawrence
2009-10-02 20:26:02 UTC
I think I found a workaround for this. We just need to fool checksetup.pl to think that the column is in the schema stored in the bugzilla schema table. So we can call the internal Bugzilla::DB::Schema and Bugzilla::DB functions. Bugzilla->dbh->_bz_real_schema->set_column('profiles', 'password_last_changed', { TYPE => 'DATETIME' }); Bugzilla->dbh->_bz_store_real_schema; Then when checksetup runs it will see that the column is already there and will not generate the SQL error. Maybe...will test Have run a script to update bz_schema on production bugzilla db. This bug should have been fixed. |