Open Bug 2052126 Opened 18 hours ago Updated 18 hours ago

Migration 5.0 -> Harmony: BugmailFilter extension expects components.id to be a SMALLSERIAL

Categories

(Bugzilla :: Extensions, defect)

defect

Tracking

()

People

(Reporter: justdave, Unassigned)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

The injected schema code in the BugmailFilter extension expects the columns that reference components.id to be INT2, which is the case in Harmony's schema, but an upgraded schema from Bugzilla 5.0 has an INT3 instead, which causes the install process for the BugmailFilter extension (enabled by default in Harmony) to crash during checksetup.

The ComponentWatching extension actually has code in it to check what type the parent schema is using and use that instead of hard-coding it. BugmailFilter should do the same (and that'll keep it working with older Harmony installs or BMO, too).

So BugmailFilter needs to:

  1. Use whatever type components.id currently is on its columns that reference it in the initial schema
  2. Detect if that type has changed on an existing install and modify it to continue matching if necessary.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: