Ravenbrook / Projects / Perforce Defect Tracking Integration / Tools / Bugzilla Schema
Quick links to table definitions:
This document describes the Bugzilla database schema for Bugzilla version 2.18.
This document is generated automatically by a Python script which
constructs and colors the schema tables from the stored results of
MySQL queries. For more information about the scripts, see code.html.
The purpose of this document is to act as a reference for developers of Bugzilla and of code which interacts with Bugzilla (e.g. P4DTI).
The intended readership is P4DTI developers and Bugzilla developers and administrators.
This document is not confidential.
Please send any comments to <p4dti-comments@ravenbrook.com>, and problem reports to <p4dti-support@ravenbrook.com>.
Bugzilla is a defect tracking system, written in Perl with a CGI web GUI. By default it uses MySQL to store its tables.
Each defect is called a bug and corresponds to one row in the bugs table. It is identified by its number, bugs.bug_id.
The work managed by Bugzilla is divided into products. The work for each product is in turn divided into the components of that product. Several properties of a new bug (e.g. ownership) are determined by the product and component to which it belongs. Each component is represented by a row in the components table. Each product is represented by a row in the products table.
Each bug has a status (bugs.bug_status). If a bug has a status which shows it has been resolved, it also has a resolution (bugs.resolution), otherwise the resolution field is empty.
This table shows the possible values and valid transitions of the status field in the default workflow.
| Status | Resolved? | Description | Transitions |
|---|---|---|---|
| UNCONFIRMED | No | A new bug, when a product has voting | to NEW by voting or confirmation to ASSIGNED by acceptance to RESOLVED by resolution |
| NEW | No | Recently added or confirmed | to ASSIGNED by acceptance to RESOLVED by analysis and maybe fixing to NEW by reassignment |
| ASSIGNED | No | Has been assigned | to NEW by reassignment to RESOLVED by analysis and maybe fixing |
| REOPENED | No | Was once resolved but has been reopened | to NEW by reassignment to ASSIGNED by acceptance to RESOLVED by analysis and maybe fixing |
| RESOLVED | Yes | Has been resolved (e.g. fixed, deemed unfixable, etc. See "resolution" column) | to REOPENED by reopening to VERIFIED by verification to CLOSED by closing |
| VERIFIED | Yes | The resolution has been approved by QA | to CLOSED when the product ships to REOPENED by reopening |
| CLOSED | Yes | Over and done with | to REOPENED by reopening |
This table shows the allowable values of the resolution field. The values "FIXED", "MOVED", and "DUPLICATE" have special meaning for Bugzilla. The other values may be changed, by editing the schema of the bugs table, to add, remove, or rename values as necessary.
| Resolution | Meaning |
|---|---|
| FIXED | The bug has been fixed. |
| INVALID | The problem described is not a bug. |
| WONTFIX | This bug will never be fixed. |
| LATER | This bug will not be fixed in this version. |
| REMIND | This bug probably won't be fixed in this version. |
| DUPLICATE | This is a duplicate of an existing bug A description comment is added to this effect, and a record is added to the duplicates table. |
| WORKSFORME | This bug could not be reproduced. |
| MOVED | This bug has been moved to another database. |
Bugzilla has users. Each user is represented by one row in the profiles table. Each user is referred by a number (profiles.userid) and an email address (profiles.login_name).
Each user has a password, used to authenticate that user to Bugzilla. The password is stored in profiles.cryptpassword in encrypted form.
On a successful login, Bugzilla generates a pair of cookies for the user's browser. On subsequent accesses, a user gets access if these cookie checks pass:
If the cookie checks fail, the user has to login (with their password), in which case a new row is added to the logincookies table and the user gets a new pair of cookies.
Rows in the logincookies table are deleted after 30 days (at user login time).
Users may vote for bugs which they think are important. A user can vote for a bug more than once. Votes are recorded in the votes table.
The maximum number of votes per bug per user is product-dependent. Whether or not project managers pay any attention to votes is up to them, apart from the "confirmation by acclamation" process, which is as follows:New bugs have the status UNCONFIRMED. To enter the main workflow, they need the status NEW. To get the status NEW, they need a particular number of votes which is product-dependent.
Products may have "milestones" defined. The intention is that a milestone should be a point in a project at which a set of bugs has been resolved. An example might be a product release or a QA target. Milestones may be turned on and off with the parameter "usetargetmilestone".
If milestones are on, each bug has a "target milestone" (by which it should be fixed). A product may have a URL associated with it which locates a document describing the milestones for that product. This document itself is entirely outside Bugzilla. A product may also have a default target milestone, which is given to new bugs.
Milestones for a product have a "sort key", which allows them to be presented in a specific order in the user interface.
Milestones are kept in the milestones table.
Products may have versions. This allows more accurate bug reporting: "we saw it in 1.3.7b3".Versions are totally independent of milestones.
The operation of Bugzilla is controlled by parameters. These are set in editparams.cgi. The current values are stored in data/params. They are not stored in the database.
The set of parameters is defined in defparams.pl.
Bugzilla has "groups" of users. Membership of a group allows a user to perform certain tasks. Each group is represented by a row of the groups table.
There are a number of built-in groups, as follows:
| Name | Description |
|---|---|
| admin | Can administer all aspects of Bugzilla |
| tweakparams | Can tweak operating parameters |
| editusers | Can edit or disable users |
| creategroups | Can create and destroy groups |
| editcomponents | Can create, destroy, and edit components and other controls (e.g. flagtypes). |
| editkeywords | Can create, destroy, and edit keywords |
| editbugs | Can edit all aspects of any bug |
| canconfirm | Can confirm a bug |
New groups may be added and used to control access to sets of bugs. These "bug groups" have groups.isbuggroup set to 1. A bug may be in any number of bug groups. To see a bug, a user must be a member of all the bug groups which the bug is in.
If the parameter "usebuggroups" is on, each product automatically has a bug group associated with it. If the parameter "usebuggroupsentry" is also on, a user must be in the product's bug group in order to create new bugs for the product.
Users may be added to a group by any user who has the "bless" property for that group. The "bless" property itself may only be conferred by an administrator.
Group membership for new users and new groups is determined by matching groups.userregexp against the user's email address.The default configuration has universal regexps for the "editbugs" and "canconfirm" groups.
User membership in a group is conferred by a row in the user_group_map table, with user_group_map.isbless set to 0. The bless privilege for a group is conferred by a row with user_group_map.isbless set to 1. Bug membership in a bug group is conferred by a row in the bug_group_map table.
Groups may be configured so that membership in one group automatically confers membership or the "bless" privilege for another group. This is controlled by the group_group_map table.
A product may be configured so that membership in one or more groups is required to perform certain actions on bugs in the product. Whether or not a new bug for the product is placed in a group is also configurable (note that user membership in a group is required to place an existing bug in that group). All this is controlled by the group_control_map table.
The group_control_map.membercontrol and group_control_map.othercontrol columns of that table determine the treatment of a given group for a new bug in a given product, depending on whether the bug is being created by a member or non-member of that group respectively. The possible values of these columns are as follows:
| value | name | meaning |
|---|---|---|
| 0 | NA | A bug for this product cannot be placed in this group. |
| 1 | Shown | A bug for this product may be placed in this group, but will not be by default. |
| 2 | Default | A bug for this product may be placed in this group, and is by default. |
| 3 | Mandatory | A bug for this product is always placed in this group. |
Only certain combinations of membercontrol/othercontrol are permitted, as follows:
| membercontrol | othercontrol | Notes |
|---|---|---|
| 0(NA) | 0(NA) | A bug for this product can never be placed in this group (so the option isn't presented). |
| 1 (Shown) | 0(NA) | Only members can place a bug in this group.This is the default setting. |
| 1 (Shown) | Anyone can place a new bug in this group. | |
| 2 (Default) | Anyone can place a bug in this group, and non-members will do so by default. | |
| 3 (Mandatory) | Anyone can place a bug in this group, and non-members will always do so. | |
| 2 (Default) | 0(NA) | Only members can place a bug in this group, and do so by default. |
| 2 (Default) | Anyone can place a bug in this group, and does so by default. | |
| 3 (Mandatory) | Members can place a bug in this group, and do so by default. Non-members always place a bug in this group. | |
| 3(Mandatory) | 3(Mandatory) | A bug for this product can never be removed from this group (so the option isn't presented). |
Users can upload attachments to bugs. An attachments can be marked as a patch. Attachments are stored in the attachments table.Attachment data is stored in attachments.thedata.
Attachment statuses are implemented with the flags system.
Bugs and attachments may be marked with "flags". The set of flag types is user-defined (using editflagtypes.cgi). For instance, a flag type might be "candidate for version 7.3 triage", or "7.3" for short. Flag types are recorded in the flagtypes table. Each flag type is either for bugs or for attachments, not both.
Actual flags are recorded in the flags table. Each flag has a status of "+" ("granted"), "-" ("denied") or "?" ("requested"). For instance, one bug might have flag "7.3+", and another might have flag "7.3-".
A status of "?" indicates that a user has requested that this item be given this flag. There is an special interface for viewing request flags (request.cgi). A request flag may be marked for the attention of a particular user, the "requestee".
A flag type may have a "CC list" of email addresses, of people to notify when a flag is requested.
By default, a single bug or attachment may receive several flags of the same type, with the same or different statuses and the same or different requestees. This may be disabled for any given flag type.
Particular flag types may only be available to bugs in certain products and components (or their attachments). This is recorded in the flaginclusions table. Particular flag types may not be available to bugs in certain products and components (or their attachments). This is recorded in the flagexclusions table.
Various features of flag types may be disabled: they can be made inactive, not requestable, not "requesteeable", not "multiplicable".
Bugzilla users can define a number of keywords, and then give each bug a set of keywords. This is mainly for use in finding related bugs. The keywords are stored in the keyworddefs table, and the one-to-many mapping from bugs to keywords is stored in the keywords table, and also in bugs.keywords.
Bugs may depend on other bugs being fixed. That is, it may be impossible to fix one bug until another one is fixed. Bugzilla records and displays such information and uses it to notify users when a bug changes (all contacts for all dependent bugs are notified when a bug changes).
Dependencies are recorded in the dependencies table.
Bugzilla keeps a record of changes made to bugs. This record is in the bugs_activity table. Each row in this table records a change to a field in the bugs table.The fields are referred to by a number which is looked up in the fielddefs table. This table records the name of the field and also a longer description used to display activity tables.
Each bug has a "severity" field, bugs.bug_severity, indicating the severity of the impact of the bug. There is no code in Bugzilla which distinguishes the values of this field, although it may naturally be used in queries.The intended meanings of the built-in values of this field are as follows:
| Value | Intended meaning |
|---|---|
| Blocker | Blocks development and/or testing work |
| Critical | Crashes, loss of data, severe memory leak |
| Major | Major loss of function |
| Minor | Minor loss of function, or other problem where easy workaround is present |
| Trivial | Cosmetic problem |
| Enhancement | Request for enhancement |
When a bug changes, email notification is sent out to a number of users:
Individual users may filter these messages according to the way in which the bug changes and their relationship to the bug. These filtering preferences are recorded in profiles.emailflags.
This is handled by the Bugzilla::Bugmail module, which is invoked by the template system (from Bugzilla::Template) when it encounters a call to SendBugMail() in a template.
Each bug has a number of comments associated with it. These are stored individually in the longdescs table.
They are displayed as the "Description" on the bug form, ordered by date and annotated with the user and date. Users can add new comments with the "Additional comment" field on the bug form.
Users can name queries. Links to named query pages appear in a navigation footer bar on most Bugzilla pages. A query named "(Default query)" is a user's default query. Named queries are stored in the namedqueries table.
Bugzilla can draw general time-series charts. There are a number of default time series. Each product has a default series for each bug status or resolution (for instance "how many bugs are INVALID in product Foo") and each component has a default series for all open bugs (UNCONFIRMED/NEW/ASSIGNED/REOPENED) and one for all closed bugs (RESOLVED/VERIFIED/CLOSED). A user can also define a new time series based on any query, and give it a "frequency" (actually a period, measured in days). The set of series is stored in the series table.
To collect the data for the time series, the Bugzilla administrator needs to arrange for the collectstats.pl script to be run every day. This script stores the data in the series_data table.
Series have categories and subcategories, which are provided in order to make it easier to manage large numbers of series. They are normalized in the series_categories table.
By default, a time series is "private": only visible to the user who created it. An administrator may make a time series "public", or visible to other users.this is determined by series.public.
Visibility of a time series to a user is determined on a per-category basis using the groups system. The group memberships required to see a time series in a given category are recorded in the category_group_map table. A user may see a time series if they are in all the groups for the category and either ths user created the series or it is public.
Bugzilla lets users "watch" each other; receiving each other's Bugzilla email. For instance, if Sam goes on holiday, Phil can "watch" her, receiving all her Bugzilla email. This is set up by the user preferences (userprefs.cgi), recorded in the watch table and handled by the email subsystem.
Bugzilla can track time for each bug, if the "timetrackinggroup" parameter is set. Members of that group get the ability to estimate the amount of effort (measured in hours) a bug will take to fix, either when creating or when editing the bug. Members of that group are also permitted to record hours of effort spent on the bug
longdescs.work_time records each increment of work. The sum of this column for a bug is computed to display as "Hours Worked" for the bug.
bugs.estimated_time is the estimate for how much time the bug will take in total, displayed as "Orig. Est.". This can be changed by members of the timetrackinggroup.
bugs.remaining_time is the current estimate for how much more time the bug will take to fix, displayed as "Hours Left". This can be changed by members of the timetrackinggroup.
The total of "Hours Left" and "Hours Worked" is shown as "Current Est.": the current estimate of the total effort required to fix the bug. "Hours Worked" as a percentage of "Current Est" is shown as "% Complete". "Current Est" deducted from "Orig. Est" is shown as "Gain"
Bugzilla has a system for sending "whine" email messages to specified users on a regular basis. This system relies on the administrator configuring the Bugzilla server to run a script at regular intervals (e.g. by using crontab).
The whineatnews.pl script should be run once a day.
For each bug which has status NEW or REOPENED, and which has not
changed for a certain number of days, it sends a message to the bug's
owner. The number of days is controlled by a Bugzilla parameter
called "whinedays". The content of the email message is controlled by
a Bugzilla parameter called "whinemail".
Bugzilla supports "quips": small text messages, often humorous, which appear along with search results. The quips are selected at random from a set.
The quips are stored in the quips table.Quips may be entered or deleted
using quips.cgi.
Quips may be entered by any user but must be approved by an administrator before they can be displayed.
|
|
Bug attachments.
| Field | Type | Default | Properties | Remarks |
|---|---|---|---|---|
| attach_id | mediumint | None | auto_increment | a unique ID. |
| bug_id | mediumint | 0 | - | the bug to which this is attached (foreign key bugs.bug_id) |
| creation_ts | datetime | 0000-00-00 00:00:00 | - | the creation time. |
| description | mediumtext | '' | - | a description of the attachment. |
| filename | varchar(100) | '' | - | the filename of the attachment. |
| isobsolete | tinyint | 0 | - | Non-zero if this attachment is marked as obsolete. |
| ispatch | tinyint | None | null | non-zero if this attachment is a patch file. |
| isprivate | tinyint | 0 | - | Non-zero if this attachment is "private", i.e. only visible to members of the "insider" group. |
| mimetype | mediumtext | '' | - | the MIME type of the attachment. |
| submitter_id | mediumint | 0 | - | the userid of the attachment (foreign key profiles.userid) |
| thedata | longblob | '' | - | the content of the attachment. |
Indexes:
| Name | Fields | Properties | Remarks |
|---|---|---|---|
| PRIMARY | attach_id | unique | - |
| bug_id | bug_id | - | |
| creation_ts | creation_ts | - |
Which bugs are in which groups. See the notes on groups.
| Field | Type | Default | Properties | Remarks |
|---|---|---|---|---|
| bug_id | mediumint | 0 | - | The bug id, (foreign key bugs.bug_id) |
| group_id | mediumint | 0 | - | The group id, (foreign key groups.id) |
Indexes:
| Name | Fields | Properties | Remarks |
|---|---|---|---|
| bug_id | bug_id, group_id | unique | - |
| group_id | group_id | - |
The bugs themselves.
| Field | Type | Default | Properties | Remarks |
|---|---|---|---|---|
| alias | varchar(20) | None | null | An alias for the bug which can be used instead of the bug number. |
| assigned_to | mediumint | 0 | - | The current owner of the bug (foreign key profiles.userid). |
| bug_file_loc | text | None | null | A URL which points to more information about the bug. |
| bug_id | mediumint | None | auto_increment | The bug ID. |
| bug_severity | enum('blocker', 'critical', 'major', 'normal', 'minor', 'trivial', 'enhancement') | blocker | - | See the notes. |
| bug_status | enum('UNCONFIRMED', 'NEW', 'ASSIGNED', 'REOPENED', 'RESOLVED', 'VERIFIED', 'CLOSED') | UNCONFIRMED | - | The workflow status of the bug. |
| cclist_accessible | tinyint | 1 | - | 1 if people on the CC list can see this bug (even if in the wrong group); 0 otherwise. |
| component_id | smallint | 0 | - | The product component (foreign key components.id) |
| creation_ts | datetime | 0000-00-00 00:00:00 | - | The times of the bug's creation. |
| delta_ts | timestamp(14) | None | null | The timestamp of the last update. This includes updates to some related tables (e.g. the longdescs table). |
| estimated_time | decimal(5,2) | 0.0 | - | The original estimate of the total effort required to fix this bug (in hours). |
| everconfirmed | tinyint | 0 | - | 1 if this bug has ever been confirmed. This is used for validation of some sort. |
| keywords | mediumtext | '' | - | A set of keywords. Note that this duplicates the information in the keywords table. (foreign key keyworddefs.name) |
| lastdiffed | datetime | 0000-00-00 00:00:00 | - | The time at which information about this bug changing was last emailed to the cc list. |
| op_sys | enum('All', 'Windows 3.1', 'Windows 95', 'Windows 98', 'Windows ME', 'Windows 2000', 'Windows NT', 'Windows XP', 'Windows Server 2003', 'Mac System 7', 'Mac System 7.5', 'Mac System 7.6.1', 'Mac System 8.0', 'Mac System 8.5', 'Mac System 8.6', 'Mac System 9.x', 'Mac OS X 10.0', 'Mac OS X 10.1', 'Mac OS X 10.2', 'Mac OS X 10.3', 'Linux', 'BSD/OS', 'FreeBSD', 'NetBSD', 'OpenBSD', 'AIX', 'BeOS', 'HP-UX', 'IRIX', 'Neutrino', 'OpenVMS', 'OS/2', 'OSF/1', 'Solaris', 'SunOS', 'other') | All | - | The operating system on which the bug was observed. |
| priority | enum('P1', 'P2', 'P3', 'P4', 'P5') | P1 | - | The priority of the bug. : P1 = most urgent, P5 = least urgent). |
| product_id | smallint | 0 | - | The product (foreign key products.id) |
| qa_contact | mediumint | 0 | - | The QA contact (foreign key profiles.userid) |
| remaining_time | decimal(5,2) | 0.0 | - | The current estimate of the remaining effort required to fix this bug (in hours). |
| rep_platform | enum('All', 'DEC', 'HP', 'Macintosh', 'PC', 'SGI', 'Sun', 'Other') | None | null | The platform on which the bug was reported. |
| reporter | mediumint | 0 | - | The user who reported this (foreign key profiles.userid) |
| reporter_accessible | tinyint | 1 | - | 1 if the reporter can see this bug (even if in the wrong group); 0 otherwise. |
| resolution | enum('', 'FIXED', 'INVALID', 'WONTFIX', 'LATER', 'REMIND', 'DUPLICATE', 'WORKSFORME', 'MOVED') | '' | - | The bug's resolution |
| short_desc | mediumtext | '' | - | A short description of the bug. |
| status_whiteboard | mediumtext | '' | - | This seems to be just a small whiteboard field. |
| target_milestone | varchar(20) | --- | - | The milestone by which this bug should be resolved. (foreign key milestones.value) |
| version | varchar(64) | '' | - | The product version (foreign key versions.value) |
| votes | mediumint | 0 | - | The number of votes. |
Indexes:
| Name | Fields | Properties | Remarks |
|---|---|---|---|
| PRIMARY | bug_id | unique | - |
| alias | alias | unique | - |
| assigned_to | assigned_to | - | |
| bug_severity | bug_severity | - | |
| bug_status | bug_status | - | |
| component_id | component_id | - | |
| creation_ts | creation_ts | - | |
| delta_ts | delta_ts | - | |
| op_sys | op_sys | - | |
| priority | priority | - | |
| product_id | product_id | - | |
| qa_contact | qa_contact | - | |
| reporter | reporter | - | |
| resolution | resolution | - | |
| short_desc | short_desc | full text | - |
| target_milestone | target_milestone | - | |
| version | version | - | |
| votes | votes | - |
Activity on the bugs table.
| Field | Type | Default | Properties | Remarks |
|---|---|---|---|---|
| added | tinytext | None | null | The new value of this field, or values which have been added for multi-value fields such as bugs.keywords, the cc table, and the dependencies table |
| attach_id | mediumint | None | null | If the change was to an attachment, the ID of the attachment (foreign key attachments.attach_id) |
| bug_id | mediumint | 0 | - | Which bug (foreign key bugs.bug_id) |
| bug_when | datetime | 0000-00-00 00:00:00 | - | When was the change made? |
| fieldid | mediumint | 0 | - | What was the fieldid? (foreign key fielddefs.id) |
| removed | tinytext | None | null | The old value of this field, or values which have been removed for multi-value fields such as bugs.keywords, the cc table, and the dependencies table |
| who | mediumint | 0 | - | Which user (foreign key profiles.userid) |
Indexes:
| Name | Fields | Properties | Remarks |
|---|---|---|---|
| bug_id | bug_id | - | |
| bug_when | bug_when | - | |
| fieldid | fieldid | - |
Which groups does a user have to be in to view chart data in a given category. See the notes on charts.
| Field | Type | Default | Properties | Remarks |
|---|---|---|---|---|
| category_id | smallint | 0 | - | The series category (foreign key series_categories.id) |
| group_id | mediumint | 0 | - | The group. (foreign key groups.id) |
Indexes:
| Name | Fields | Properties | Remarks |
|---|---|---|---|
| category_id | category_id, group_id | unique | - |
Users who have asked to receive email when a bug changes.
| Field | Type | Default | Properties | Remarks |
|---|---|---|---|---|
| bug_id | mediumint | 0 | - | The bug (foreign key bugs.bug_id) |
| who | mediumint | 0 | - | The user (foreign key profiles.userid) |
Indexes:
| Name | Fields | Properties | Remarks |
|---|---|---|---|
| bug_id | bug_id, who | unique | - |
| who | who | - |
One row for each component. See the notes on products and components.
| Field | Type | Default | Properties | Remarks |
|---|---|---|---|---|
| description | mediumtext | '' | - | A description of the component. |
| id | smallint | None | auto_increment | The component id. |
| initialowner | mediumint | 0 | - | The default initial owner of bugs in this component. On component creation, this is set to the user who creates the component. foreign key profiles.userid. |
| initialqacontact | mediumint | 0 | - | The initial "qa_contact" field for bugs of this component. Note that the use of the qa_contact field is optional, parameterized by Param("useqacontact"). foreign key profiles.userid. |
| name | varchar(64) | '' | - | The component id. |
| product_id | smallint | 0 | - | The product (foreign key products.id) |
Indexes:
| Name | Fields | Properties | Remarks |
|---|---|---|---|
| PRIMARY | id | unique | - |
| name | name | - | |
| product_id | product_id, name | unique | - |
Which bugs depend on other bugs.
| Field | Type | Default | Properties | Remarks |
|---|---|---|---|---|
| blocked | mediumint | 0 | - | Which bug is blocked (foreign key bugs.bug_id) |
| dependson | mediumint | 0 | - | Which bug does it depend on (foreign key bugs.bug_id) |
Indexes:
| Name | Fields | Properties | Remarks |
|---|---|---|---|
| blocked | blocked | - | |
| dependson | dependson | - |
Which bugs are duplicates of which other bugs.
| Field | Type | Default | Properties | Remarks |
|---|---|---|---|---|
| dupe | mediumint | 0 | - | The duplicate bug (foreign key bugs.bug_id) |
| dupe_of | mediumint | 0 | - | The bug which is duplicated (foreign key bugs.bug_id) |
Indexes:
| Name | Fields | Properties | Remarks |
|---|---|---|---|
| PRIMARY | dupe | unique | - |
The properties of each bug field.
| Field | Type | Default | Properties | Remarks |
|---|---|---|---|---|
| description | mediumtext | '' | - | long description |
| fieldid | mediumint | None | auto_increment | primary key for this table |
| mailhead | tinyint | 0 | - | whether or not to send the field description in mail notifications. |
| name | varchar(64) | '' | - | field name or definition (some fields are names of other tables or of fields in other tables). |
| sortkey | smallint | 0 | - | the order of fields in mail notifications. |
Indexes:
| Name | Fields | Properties | Remarks |
|---|---|---|---|
| PRIMARY | fieldid | unique | - |
| name | name | unique | - |
| sortkey | sortkey | - |
It may be forbidden to set a given flag on an item (bug or attachment) if that item is in a given product and/or component. This table records such exclusions. See the notes on flags.
| Field | Type | Default | Properties | Remarks |
|---|---|---|---|---|
| component_id | smallint | None | null | The component, or NULL for "any". (foreign key components.id) |
| product_id | smallint | None | null | The product, or NULL for "any". (foreign key products.id) |
| type_id | smallint | 0 | - | The flag type. (foreign key flagtypes.id) |
Indexes:
| Name | Fields | Properties | Remarks |
|---|---|---|---|
| type_id | type_id, product_id, component_id | - |
An item (bug or attachment) may be required to be in a given product and/or component for a flag to be set. This table records such requirements. See the notes on flags.
| Field | Type | Default | Properties | Remarks |
|---|---|---|---|---|
| component_id | smallint | None | null | The component, or NULL for "any". (foreign key components.id) |
| product_id | smallint | None | null | The product, or NULL for "any". (foreign key products.id) |
| type_id | smallint | 0 | - | The flag type. (foreign key flagtypes.id) |
Indexes:
| Name | Fields | Properties | Remarks |
|---|---|---|---|
| type_id | type_id, product_id, component_id | - |
This table records the flags set on bugs or attachments. See the notes on flags.
| Field | Type | Default | Properties | Remarks |
|---|---|---|---|---|
| attach_id | mediumint | None | null | The attachment, or NULL if this flag is not on an attachment. (foreign key attachments.attach_id) |
| bug_id | mediumint | 0 | - | The bug. (foreign key bugs.bug_id) |
| creation_date | datetime | 0000-00-00 00:00:00 | - | The date the flag was created. |
| id | mediumint | 0 | - | A unique ID. |
| is_active | tinyint | 1 | - | 0 if this flag has been deleted; 1 otherwise. |
| modification_date | datetime | None | null | The date the flag was most recently modified or created. |
| requestee_id | mediumint | None | null | The ID of the user to whom this request flag is addressed, or NULL for non-requestee flags (foreign key profiles.userid) |
| setter_id | mediumint | None | null | The ID of the user who created, or most recently modified, this flag (foreign key profiles.userid) |
| status | char(1) | '' | - | '+' (granted), '-' (denied), or '?' (requested). |
| type_id | smallint | 0 | - | The flag type. (foreign key flagtypes.id) |
Indexes:
| Name | Fields | Properties | Remarks |
|---|---|---|---|
| PRIMARY | id | unique | - |
| bug_id | bug_id, attach_id | - | |
| requestee_id | requestee_id | - | |
| setter_id | setter_id | - |
The types of flags available for bugs and attachments. See the notes on flags.
| Field | Type | Default | Properties | Remarks |
|---|---|---|---|---|
| cc_list | varchar(200) | None | null | A string containing email addresses to which notification of requests for this flag should be sent. This is filtered using the groups system before messages are actually sent, so that users not entitled to see a bug don't receive notifications concerning it. |
| description | text | None | null | The description of the flag |
| id | smallint | 0 | - | The flag type ID |
| is_active | tinyint | 1 | - | 1 if the flag appears in the UI and can be set; 0 otherwise. |
| is_multiplicable | tinyint | 0 | - | 1 if multiple instances of this flag may be set on the same item; 0 otherwise. |
| is_requestable | tinyint | 0 | - | 1 if the flag may be requested; 0 otherwise. |
| is_requesteeble | tinyint | 0 | - | 1 if a request for this flag may be aimed at a particular user; 0 otherwise. |
| name | varchar(50) | '' | - | The short flag name |
| sortkey | smallint | 0 | - | An integer used for sorting flags for display. |
| target_type | char(1) | b | - | 'a' for attachment flags, 'b' for bug flags |
Indexes:
| Name | Fields | Properties | Remarks |
|---|---|---|---|
| PRIMARY | id | unique | - |
This table describes the relationship of groups to products (whether membership in a given group is required for entering or editing a bug in a given product). See the notes on groups.
| Field | Type | Default | Properties | Remarks |
|---|---|---|---|---|
| canedit | tinyint | 0 | - | 1 if membership of this group is required to edit a bug in this product; 0 otherwise. |
| entry | tinyint | 0 | - | 1 if membership of this group is required to enter a bug in this product; 0 otherwise. |
| group_id | mediumint | 0 | - | The group. (foreign key groups.id) |
| membercontrol | tinyint | 0 | - | Determines what control members of this group have over whether a bug for this product is placed in this group. 0 (NA/no control): forbidden. 1 (Shown): permitted. 2 (Default): permitted and by default. 3 (Mandatory): always. |
| othercontrol | tinyint | 0 | - | Determines what control non-group-members have over whether a new bug for this product is placed in this group. Group membership of existing bugs can only be changed by members of the relevant group. 0 (NA/no control): forbidden. 1 (Shown): permitted. 2 (Default): permitted and by default. 3 (Mandatory): always. Allowable values depend on the value of membercontrol. See the notes on groups. |
| product_id | mediumint | 0 | - | The product. (foreign key products.id) |
Indexes:
| Name | Fields | Properties | Remarks |
|---|---|---|---|
| group_id | group_id | - | |
| product_id | product_id, group_id | unique | - |
Groups can be configured such that membership of one group automatically confers rights over some other groups. This table records that configuration. See the notes on groups.
| Field | Type | Default | Properties | Remarks |
|---|---|---|---|---|
| grantor_id | mediumint | 0 | - | The group whose membership or "bless" privilege is automatically granted.(foreign key groups.id) |
| isbless | tinyint | 0 | - | 0 if membership is granted; 1 if just "bless" privilege is granted ("bless" does not imply membership). |
| member_id | mediumint | 0 | - | The group whose membership grants membership or "bless" privilege for another group.(foreign key groups.id) |
Indexes:
| Name | Fields | Properties | Remarks |
|---|---|---|---|
| member_id | member_id, grantor_id, isbless | unique | - |
This table describes a number of user groups. Each group allows its members to perform a restricted activity. See the notes on groups.
| Field | Type | Default | Properties | Remarks |
|---|---|---|---|---|
| description | text | '' | - | A long description of the group. |
| id | mediumint | None | auto_increment | The group id |
| isactive | tinyint | 1 | - | 1 if bugs can be added to this group; 0 otherwise. |
| isbuggroup | tinyint | 0 | - | 1 if this is a group controlling access to a set of bugs. |
| last_changed | datetime | 0000-00-00 00:00:00 | - | A timestamp showing when this group was last changed. |
| name | varchar(255) | '' | - | A short name for the group. |
| userregexp | tinytext | '' | - | a regexp used to determine membership of new users. |
Indexes:
| Name | Fields | Properties | Remarks |
|---|---|---|---|
| PRIMARY | id | unique | - |
| name | name | unique | - |
Names and definitions of the keywords. See the notes on keywords.
| Field | Type | Default | Properties | Remarks |
|---|---|---|---|---|
| description | mediumtext | None | null | The meaning of the keyword. |
| id | smallint | 0 | - | A unique number identifying this keyword. |
| name | varchar(64) | '' | - | The keyword itself. |
Indexes:
| Name | Fields | Properties | Remarks |
|---|---|---|---|
| PRIMARY | id | unique | - |
| name | name | unique | - |
Bugs may have keywords. This table defines which bugs have which keywords. The keywords are defined in the keyworddefs table.
| Field | Type | Default | Properties | Remarks |
|---|---|---|---|---|
| bug_id | mediumint | 0 | - | The bug (foreign key bugs.bug_id) |
| keywordid | smallint | 0 | - | The keyword ID (foreign key keyworddefs.id) |
Indexes:
| Name | Fields | Properties | Remarks |
|---|---|---|---|
| bug_id | bug_id, keywordid | unique | - |
| keywordid | keywordid | - |
Bugzilla generates a cookie each time a user logs in, and uses it for subsequent authentication. The cookies generated are stored in this table. For more information, see the notes on authentication.
| Field | Type | Default | Properties | Remarks |
|---|---|---|---|---|
| cookie | mediumint | None | auto_increment | The cookie |
| ipaddr | varchar(40) | '' | - | The CGI REMOTE_ADDR for this login. |
| lastused | timestamp(14) | None | null | The timestamp of this login. |
| userid | mediumint | 0 | - | The user id; (foreign key profiles.userid) |
Indexes:
| Name | Fields | Properties | Remarks |
|---|---|---|---|
| PRIMARY | cookie | unique | - |
| lastused | lastused | - |
Long bug descriptions.
| Field | Type | Default | Properties | Remarks |
|---|---|---|---|---|
| bug_id | mediumint | 0 | - | the bug (foreign key bugs.bug_id) |
| bug_when | datetime | 0000-00-00 00:00:00 | - | when the text was added |
| isprivate | tinyint | 0 | - | Non-zero if this comment is "private", i.e. only visible to members of the "insider" group. |
| thetext | mediumtext | None | null | the text itself. |
| who | mediumint | 0 | - | the user who added this text (foreign key profiles.userid) |
| work_time | decimal(5,2) | 0.0 | - | Number of hours worked on this bug (for time tracking purposes). |
Indexes:
| Name | Fields | Properties | Remarks |
|---|---|---|---|
| bug_id | bug_id | - | |
| bug_when | bug_when | - | |
| who | who | - | |
| thetext | thetext | full text | - |
Development milestones.
| Field | Type | Default | Properties | Remarks |
|---|---|---|---|---|
| product_id | smallint | 0 | - | The product (foreign key products.id) |
| sortkey | smallint | 0 | - | A number used for sorting milestones for a given product. |
| value | varchar(20) | '' | - | The name of the milestone (e.g. "3.1 RTM", "0.1.37", "tweakfor BigCustomer", etc). |
Indexes:
| Name | Fields | Properties | Remarks |
|---|---|---|---|
| product_id | product_id, value | unique | - |
Named queries.
| Field | Type | Default | Properties | Remarks |
|---|---|---|---|---|
| linkinfooter | tinyint | 0 | - | Whether or not the query should appear in the foot of every page. |
| name | varchar(64) | '' | - | The name of the query. |
| query | mediumtext | '' | - | The query (text to append to the query page URL). |
| userid | mediumint | 0 | - | The user whose query this is (foreign key profiles.userid) |
Indexes:
| Name | Fields | Properties | Remarks |
|---|---|---|---|
| userid | userid, name | unique | - |
One row for each product. See the notes on products.
| Field | Type | Default | Properties | Remarks |
|---|---|---|---|---|
| defaultmilestone | varchar(20) | --- | - | The default milestone for a new bug (foreign key milestones.value) |
| description | mediumtext | None | null | The description of the product |
| disallownew | tinyint | 0 | - | New bugs can only be created for this product if this is 0. |
| id | smallint | None | auto_increment | The product ID. |
| maxvotesperbug | smallint | 10000 | - | Maximum number of votes which a bug may have. |
| milestoneurl | tinytext | '' | - | The URL of a document describing the product milestones. |
| name | varchar(64) | '' | - | The product name. |
| votesperuser | smallint | 0 | - | Total votes which a single user has for bugs of this product. |
| votestoconfirm | smallint | 0 | - | How many votes are required for this bug to become NEW. |
Indexes:
| Name | Fields | Properties | Remarks |
|---|---|---|---|
| PRIMARY | id | unique | - |
| name | name | unique | - |
Describes Bugzilla users. One row per user.
| Field | Type | Default | Properties | Remarks |
|---|---|---|---|---|
| cryptpassword | varchar(34) | None | null | The user's password. The Perl function crypt is used. |
| disabledtext | mediumtext | '' | - | If non-empty, indicates that this account has been disabled and gives a reason. |
| emailflags | mediumtext | None | null | Flags controlling when email messages are sent to this user. |
| login_name | varchar(255) | '' | - | The user's email address. Used when logging in or providing mailto: links. |
| mybugslink | tinyint | 1 | - | indicates whether a "My Bugs" link should appear at the bottom of each page. |
| realname | varchar(255) | None | null | The user's real name. |
| refreshed_when | datetime | 0000-00-00 00:00:00 | - | A timestamp showing when the derived group memberships in the user_group_map table were last updated for this user. |
| userid | mediumint | None | auto_increment | A unique identifier for the user. Used in other tables to identify this user. |
Indexes:
| Name | Fields | Properties | Remarks |
|---|---|---|---|
| PRIMARY | userid | unique | - |
| login_name | login_name | unique | - |
This table is for recording changes to the profiles table. Currently it only records changes to group membership made with editusers.cgi. This allows the administrator to track group inflation. There is currently no code to inspect this table; only to add to it.
| Field | Type | Default | Properties | Remarks |
|---|---|---|---|---|
| fieldid | mediumint | 0 | - | The ID of the changed field (foreign key fielddefs.id) |
| newvalue | tinytext | None | null | The new value. |
| oldvalue | tinytext | None | null | The old value |
| profiles_when | datetime | 0000-00-00 00:00:00 | - | When it was changed |
| userid | mediumint | 0 | - | The profile which has changed (foreign key profiles.userid) |
| who | mediumint | 0 | - | The user who changed it (foreign key profiles.userid) |
Indexes:
| Name | Fields | Properties | Remarks |
|---|---|---|---|
| userid | userid | - | |
| profiles_when | profiles_when | - | |
| fieldid | fieldid | - |
A table of quips.
| Field | Type | Default | Properties | Remarks |
|---|---|---|---|---|
| approved | tinyint(1) | 1 | - | 1 if this quip has been approved for display, 0 otherwise. |
| quip | text | '' | - | The quip itself. |
| quipid | mediumint | None | auto_increment | A unique ID. |
| userid | mediumint | 0 | - | The user who added this quip (foreign key profiles.userid) |
Indexes:
| Name | Fields | Properties | Remarks |
|---|---|---|---|
| PRIMARY | quipid | unique | - |
Properties of the time-series datasets available (e.g. for plotting charts). See the notes on charts.
| Field | Type | Default | Properties | Remarks |
|---|---|---|---|---|
| category | smallint | 0 | - | The series category. (foreign key series_categories.id) |
| creator | mediumint | 0 | - | The user who created this series (foreign key profiles.userid). 0 if this series is created by checksetup when first installing Bugzilla. |
| frequency | smallint | 0 | - | The period between data samples for this series, in days. |
| last_viewed | datetime | None | null | The time at which this dataset was last viewed. |
| name | varchar(64) | '' | - | The series name. |
| public | tinyint(1) | 0 | - | 1 if the series is visible to all users, 0 otherwise. |
| query | mediumtext | '' | - | a snippet of CGI which specifies a subset of bugs, as for query.cgi |
| series_id | mediumint | None | auto_increment | A unique ID. |
| subcategory | smallint | 0 | - | The series subcategory. (foreign key series_categories.id) |
Indexes:
| Name | Fields | Properties | Remarks |
|---|---|---|---|
| PRIMARY | series_id | unique | - |
| creator | creator | - | |
| creator_2 | creator, category, subcategory, name | unique | - |
| Field | Type | Default | Properties | Remarks |
|---|---|---|---|---|
| id | smallint | None | auto_increment | A unique ID. |
| name | varchar(64) | '' | - | The category name. |
Indexes:
| Name | Fields | Properties | Remarks |
|---|---|---|---|
| PRIMARY | id | unique | - |
| name | name | unique | - |
Data for plotting time-series charts. See the notes on charts.
| Field | Type | Default | Properties | Remarks |
|---|---|---|---|---|
| series_date | datetime | 0000-00-00 00:00:00 | - | The time point at which this datum was collected. |
| series_id | mediumint | 0 | - | The series ID. (foreign key series.series_id) |
| series_value | mediumint | 0 | - | The number of bugs in the dataset at this time point. |
Indexes:
| Name | Fields | Properties | Remarks |
|---|---|---|---|
| series_id | series_id, series_date | unique | - |
Tokens are sent to users to track activities such as creating new accounts and changing email addresses or passwords. They are also sent to browsers and used to track workflow, to prevent security problems (e.g. so that one can only delete groups from a session last seen on a group management page).
| Field | Type | Default | Properties | Remarks |
|---|---|---|---|---|
| eventdata | tinytext | None | null | The expected event, for a session token. |
| issuedate | datetime | 0000-00-00 00:00:00 | - | The date at which the token was issued |
| token | varchar(16) | '' | - | The token itself. |
| tokentype | varchar(8) | '' | - | The type of the token. Possible values: 'account' when creating a new user account, 'emailold' and 'emailnew' when changing email address, 'password' when changing a password, or 'session' for a session token. |
| userid | mediumint | 0 | - | The user to whom the token was issued. (foreign key profiles.userid) |
Indexes:
| Name | Fields | Properties | Remarks |
|---|---|---|---|
| PRIMARY | token | unique | - |
| userid | userid | - |
This table records which users are members of each group, or can "bless" each group. See the notes on groups.
| Field | Type | Default | Properties | Remarks |
|---|---|---|---|---|
| grant_type | tinyint | 0 | - | 0 if this membership or privilege is explicit. 1 if it is derived from a group hierarchy (see the group_group_map table). 2 if it results from matching a regular expression (see groups.userregexp). |
| group_id | mediumint | 0 | - | The group. (foreign key groups.id) |
| isbless | tinyint | 0 | - | 0 if this row records group membership; 1 if this row records group "bless" privilege. |
| user_id | mediumint | 0 | - | The user. (foreign key profiles.userid) |
Indexes:
| Name | Fields | Properties | Remarks |
|---|---|---|---|
| user_id | user_id, group_id, grant_type, isbless | unique | - |
Product versions.
| Field | Type | Default | Properties | Remarks |
|---|---|---|---|---|
| product_id | smallint | 0 | - | The product (foreign key products.id) |
| value | tinytext | None | null | The name of the version |
The "versions" table has no indexes.
| Field | Type | Default | Properties | Remarks |
|---|---|---|---|---|
| bug_id | mediumint | 0 | - | The bug (foreign key bugs.bug_id) |
| vote_count | smallint | 0 | - | How many votes. |
| who | mediumint | 0 | - | The user (foreign key profiles.userid) |
Indexes:
| Name | Fields | Properties | Remarks |
|---|---|---|---|
| bug_id | bug_id | - | |
| who | who | - |
| Field | Type | Default | Properties | Remarks |
|---|---|---|---|---|
| watched | mediumint | 0 | - | The watched user (foreign key profiles.userid) |
| watcher | mediumint | 0 | - | The watching user (foreign key profiles.userid) |
Indexes:
| Name | Fields | Properties | Remarks |
|---|---|---|---|
| watched | watched | - | |
| watcher | watcher, watched | unique | - |
This table gives the dates of all the Bugzilla releases since 2.0.
| Date | Release | Notes |
|---|---|---|
| 1998-09-19 | 2.0 | Not described in this document. |
| 1999-02-10 | 2.2 | Not described in this document. |
| 1999-04-30 | 2.4 | Not described in this document. |
| 1999-08-30 | 2.6 | Not described in this document. |
| 1999-11-19 | 2.8 | Not described in this document. |
| 2000-05-09 | 2.10 | Not described in this document. |
| 2001-04-27 | 2.12 | Not described in this document. |
| 2001-08-29 | 2.14 | Not described in this document. |
| 2002-01-05 | 2.14.1 | A security patch release. Not described in this document. |
| 2002-05-10 | 2.16rc1 | A release candidate. Not described in this document. |
| 2002-06-07 | 2.16rc2 | A release candidate. Not described in this document. |
| 2002-06-07 | 2.14.2 | A security patch release. Not described in this document. |
| 2002-07-28 | 2.16 | Not described in this document. |
| 2002-07-28 | 2.14.3 | A security patch release. Not described in this document. |
| 2002-09-30 | 2.16.1 | A security patch release. Not described in this document. |
| 2002-09-30 | 2.14.4 | A security patch release. Not described in this document. |
| 2002-11-25 | 2.17.1 | A development release. Not described in this document. |
| 2003-01-02 | 2.16.2 | A security patch release. Not described in this document. |
| 2003-01-02 | 2.14.5 | A security patch release. Not described in this document. |
| 2003-01-02 | 2.17.3 | A development release. Not described in this document. |
| 2003-04-25 | 2.16.3 | A security patch release. Not described in this document. |
| 2003-04-25 | 2.17.4 | A development release. Not described in this document. |
| 2003-11-03 | 2.17.5 | A development release. Not described in this document. |
| 2003-11-03 | 2.16.4 | A security patch release Not described in this document. |
| 2003-11-10 | 2.17.6 | A development release. Not described in this document. |
| 2004-03-03 | 2.16.5 | A security patch release Not described in this document. |
| 2004-03-03 | 2.17.7 | A development release. Not described in this document. |
| 2004-07-10 | 2.16.6 | A security patch release Not described in this document. |
| 2004-07-10 | 2.18rc1 | A release candidate. Not described in this document. |
| 2004-07-28 | 2.18rc2 | A release candidate. Not described in this document. |
| 2004-10-24 | 2.16.7 | A security patch release Not described in this document. |
| 2004-10-24 | 2.18rc3 | A release candidate. Not described in this document. |
| 2004-10-24 | 2.19.1 | A development release. Not described in this document. |
| 2005-01-15 | 2.16.8 | A security patch release Not described in this document. |
| 2005-01-15 | 2.18 | |
| 2005-01-15 | 2.19.2 | A development release. Not described in this document. |
| 2005-05-12 | 2.16.9 | A security patch release Not described in this document. |
| 2005-05-12 | 2.18.1 | A security patch release Not described in this document. |
| 2005-05-12 | 2.19.3 | A development release. Not described in this document. |
| 2005-05-19 | 2.16.10 | A security patch release Not described in this document. |
| 2005-07-08 | 2.18.2 | A security patch release Not described in this document. |
| 2005-07-08 | 2.20rc1 | A release candidate Not described in this document. |
| 2005-07-09 | 2.18.3 | A security patch release Not described in this document. |
| 2005-08-08 | 2.20rc2 | A release candidate Not described in this document. |
| 2005-10-01 | 2.18.4 | A security patch release Not described in this document. |
| 2005-10-01 | 2.20 | Not described in this document. |
| 2005-10-01 | 2.21.1 | A development release. Not described in this document. |
| 2006-02-21 | 2.16.11 | A security patch release Not described in this document. |
| 2006-02-21 | 2.18.5 | A security patch release Not described in this document. |
| 2006-02-21 | 2.20.1 | A security patch release Not described in this document. |
| 2006-02-21 | 2.22rc1 | A release candidate Not described in this document. |
| 2006-04-23 | 2.20.2 | A security patch release Not described in this document. |
| 2006-04-23 | 2.22 | Not described in this document. |
| 2006-04-23 | 2.23.1 | A development release. Not described in this document. |
| 2006-07-09 | 2.23.2 | A development release. Not described in this document. |
| 2006-10-15 | 2.18.6 | A security patch release Not described in this document. |
| 2006-10-15 | 2.20.3 | A security patch release Not described in this document. |
| 2006-10-15 | 2.22.1 | A security patch release Not described in this document. |
| 2006-10-15 | 2.23.3 | A development release Not described in this document. |
| 2007-02-02 | 2.20.4 | A security patch release Not described in this document. |
| 2007-02-02 | 2.22.2 | A security patch release Not described in this document. |
| 2007-02-02 | 2.23.4 | A development release Not described in this document. |
| 2007-02-26 | 3.0rc1 | A release candidate Not described in this document. |
| 2007-05-09 | 3.0 | Not described in this document. |
| 2007-08-23 | 2.20.5 | A security patch release Not described in this document. |
| 2007-08-23 | 2.22.3 | A security patch release Not described in this document. |
| 2007-08-23 | 3.0.1 | A security patch release Not described in this document. |
| 2007-08-23 | 3.1.1 | A development release Not described in this document. |
| 2007-09-19 | 3.0.2 | A security patch release Not described in this document. |
| 2007-09-19 | 3.1.2 | A development release Not described in this document. |
| 2008-01-09 | 3.0.3 | A patch release Not described in this document. |
| 2008-02-02 | 3.1.3 | A development release Not described in this document. |
| 2008-05-04 | 2.20.6 | A security patch release Not described in this document. |
| 2008-05-04 | 2.22.4 | A security patch release Not described in this document. |
| 2008-05-04 | 3.0.4 | A security patch release Not described in this document. |
| 2008-05-04 | 3.1.4 | A development release Not described in this document. |
| 2008-08-12 | 2.22.5 | A security patch release Not described in this document. |
| 2008-08-12 | 3.0.5 | A security patch release Not described in this document. |
| 2008-08-12 | 3.2rc1 | A release candidate Not described in this document. |
| 2008-11-07 | 2.20.7 | A security patch release Not described in this document. |
| 2008-11-07 | 2.22.6 | A security patch release Not described in this document. |
| 2008-11-07 | 3.0.6 | A security patch release Not described in this document. |
| 2008-11-07 | 3.2rc2 | A release candidate Not described in this document. |
| 2008-11-30 | 3.2 | Not described in this document. |
| 2009-01-06 | 3.3.1 | A development release Not described in this document. |
| 2009-02-03 | 2.22.7 | A security patch release Not described in this document. |
| 2009-02-03 | 3.0.7 | A security patch release Not described in this document. |
| 2009-02-03 | 3.2.1 | A security patch release Not described in this document. |
| 2009-02-03 | 3.0.8 | A security patch release Not described in this document. |
| 2009-02-03 | 3.2.2 | A security patch release Not described in this document. |
| 2009-02-03 | 3.3.2 | A development release Not described in this document. |
| 2009-02-03 | 3.3.3 | A security patch reease Not described in this document. |
| 2009-03-31 | 3.2.3 | A security patch release Not described in this document. |
| 2009-03-31 | 3.3.4 | A development release Not described in this document. |
| 2009-07-08 | 3.2.4 | A security patch release Not described in this document. |
| 2009-07-08 | 3.4rc1 | A development release Not described in this document. |
| 2009-07-28 | 3.4 | Not described in this document. |
| 2009-08-01 | 3.4.1 | A security patch release Not described in this document. |
| 2009-09-11 | 3.0.9 | A security patch release Not described in this document. |
| 2009-09-11 | 3.2.5 | A security patch release Not described in this document. |
| 2009-09-11 | 3.4.2 | A security patch release Not described in this document. |
The schema is identical in Bugzilla releases 2.18rc3 and 2.18.
To select bug number n:
select * from bugs where bug_id = n
To get a complete list of user ids and email addresses:
select userid, login_name from profiles
To get the email address of user n:
select login_name from profiles where userid = n
To get the set of cc addresses of bug n:
select login_name from cc, profiles
where cc.bug_id = n
and profiles.userid = cc.who
To select the long descriptions of bug n, together with the name and email address of the commenters:
select profiles.login_name, profiles.realname,
longdescs.bug_when, longdescs.thetext
from longdescs, profiles
where profiles.userid = longdescs.who
and longdescs.bug_id = n
order by longdescs.bug_when
To find out the groups of user n:
select group_id from user_group_map where userid = n and isbless=0
| 2000-11-14 | NB | Created. |
| 2001-03-02 | RB | Transferred copyright to Perforce under their license. |
| 2001-04-06 | NB | Added sample queries. |
| 2001-09-12 | NB | Updated to reflect schema updates in Bugzilla 2.12 and 2.14 |
| 2002-01-31 | NB | Added notes on Bugzilla 2.14.1. |
| 2002-05-31 | NB | Updated for Bugzilla 2.16 (based on 2.16rc1). |
| 2002-09-26 | NB | Updated for Bugzilla 2.16/2.14.2/2.14.3. |
| 2002-10-04 | NB | Added notes on Bugzilla 2.14.4 and 2.16.1, and on identical schemas. |
| 2003-05-14 | NB | Added extensive notes on schema changes, in section 2. |
| 2003-06-06 | NB | Added table of Bugzilla releases showing release date and support status. |
| 2003-06-06 | NB | Added notes on schema changes in 2.17.x. |
| 2003-06-13 | NB | Added first cut at description of new Bugzilla tables. |
| 2003-06-27 | NB | Added more on recent schema changes. Colour-coded all schema changes. |
| 2003-07-09 | NB | Completely changed the way this document is produced. The schema tables themselves are now created and coloured automatically by querying MySQL. |
| 2003-11-04 | NB | Add Bugzilla 2.16.4 and 2.17.5. |
| 2003-11-10 | NB | Add Bugzilla 2.17.6. |
| 2004-03-19 | NB | Add Bugzilla 2.17.7; improve documentation of the groups system; improve automated schema change descriptions. |
| 2004-03-26 | NB | Add documentation of the flags system, the time series system, and the time tracking system. |
| 2004-04-30 | NB | Correct some documentation of the time series system based on feedback from the author. |
| 2004-07-14 | NB | Add 2.16.6 and 2.18rc1. |
| 2004-07-28 | NB | Add 2.18rc2. |
| 2004-11-11 | NB | Add 2.16.7, 2.18rc3, 2.19.1. Change document-generation code to improve colouring, link consistency, control, and robustness. |
| 2004-11-12 | NB | Turn into CGI, using schemas stored in Python pickles. |
| 2004-11-13 | NB | Add 2.0, 2.2, 2.4, 2.6. 2.8, for completeness. |
| 2004-12-03 | NB | Add notes on quips and a few missing foreign key links. |
| 2005-01-18 | NB | Add 2.16.8, 2.18, and 2.19.2. |
| 2005-05-19 | NB | Add 2.16.9, 2.16.10, 2.18.1, and (preliminarily) 2.19.3. |
| 2005-09-15 | NB | Add 2.18.2, 2.18.3, 2.20rc1, 2.20rc2, and complete remarks for 2.19.3. |
| 2005-10-03 | NB | Add 2.18.4, 2.20, 2.21.1 |
| 2006-05-18 | NB | Add 2.16.11, 2.18.5, 2.20.1, 2.22rc1, 2.20.2, 2.22, 2.23.1. |
| 2006-10-31 | NB | Add recent releases, to 2.18.6, 2.20.3, 2.22.1, 2.23.3. |
| 2007-05-11 | NB | Add recent releases 2.20.4, 2.22.2, 2.23.4, 3.0rc1, 3.0. |
| 2008-02-29 | NB | Add recent releases 3.0.1, 3.0.2, 3.0.3, 3.1.1, 3.1.2, 3.1.3. |
| 2009-07-31 | NB | Add recent releases 2.20.7, 2.22.5, 2.22.6, 2.22.7, 3.0.5, 3.0.6, 3.0.7, 3.0.8, 3.2rc1, 3.2rc2, 3.2, 3.2.1, 3.2.2, 3.2.3, 3.2.4, 3.3.1, 3.3.2, 3.3.3, 3.3.4, 3.4rc1, and 3.4. |
Generated at 2010-09-02 17:50:45
by //info.ravenbrook.com/project/p4dti/tool/cgi/bugzilla-schema/make_schema_doc.py#11
from //info.ravenbrook.com/project/p4dti/tool/cgi/bugzilla-schema/schema_remarks.py#36
This document is copyright © 2001-2004 Perforce Software, Inc. All rights reserved.
Redistribution and use of this document in any form, with or without modification, is permitted provided that redistributions of this document retain the above copyright notice, this condition and the following disclaimer.
This document is provided by the copyright holders and contributors "as is" and any express or implied warranties, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose are disclaimed. In no event shall the copyright holders and contributors be liable for any direct, indirect, incidental, special, exemplary, or consequential damages (including, but not limited to, procurement of substitute goods or services; loss of use, data, or profits; or business interruption) however caused and on any theory of liability, whether in contract, strict liability, or tort (including negligence or otherwise) arising in any way out of the use of this document, even if advised of the possibility of such damage.