Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
3dce1aa3
Commit
3dce1aa3
authored
Jul 23, 2012
by
Dave Lawrence
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 764457 - Add a primary key to the bugs_activity table
r=glob, a=LpSolit
parent
58cfa7b9
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
0 deletions
+7
-0
Schema.pm
Bugzilla/DB/Schema.pm
+2
-0
DB.pm
Bugzilla/Install/DB.pm
+4
-0
recode.pl
contrib/recode.pl
+1
-0
No files found.
Bugzilla/DB/Schema.pm
View file @
3dce1aa3
...
...
@@ -322,6 +322,8 @@ use constant ABSTRACT_SCHEMA => {
bugs_activity
=>
{
FIELDS
=>
[
id
=>
{
TYPE
=>
'MEDIUMSERIAL'
,
NOTNULL
=>
1
,
PRIMARYKEY
=>
1
},
bug_id
=>
{
TYPE
=>
'INT3'
,
NOTNULL
=>
1
,
REFERENCES
=>
{
TABLE
=>
'bugs'
,
COLUMN
=>
'bug_id'
,
...
...
Bugzilla/Install/DB.pm
View file @
3dce1aa3
...
...
@@ -678,6 +678,10 @@ sub update_table_definitions {
{
TYPE
=>
'varchar(255)'
});
$dbh
->
bz_add_index
(
'bugs_activity'
,
'bugs_activity_removed_idx'
,
[
'removed'
]);
# 2012-06-13 dkl@mozilla.com - Bug 764457
$dbh
->
bz_add_column
(
'bugs_activity'
,
'id'
,
{
TYPE
=>
'MEDIUMSERIAL'
,
NOTNULL
=>
1
,
PRIMARYKEY
=>
1
});
################################################################
# New --TABLE-- changes should go *** A B O V E *** this point #
################################################################
...
...
contrib/recode.pl
View file @
3dce1aa3
...
...
@@ -29,6 +29,7 @@ use constant MAX_STRING_LEN => 25;
# For certain tables, we can't automatically determine their Primary Key.
# So, we specify it here as a string.
use
constant
SPECIAL_KEYS
=>
{
# bugs_activity since 4.4 has a unique primary key added
bugs_activity
=>
'bug_id,bug_when,fieldid'
,
profile_setting
=>
'user_id,setting_name'
,
profiles_activity
=>
'userid,profiles_when,fieldid'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment