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
bfabb024
Commit
bfabb024
authored
Jul 23, 2012
by
Dave Lawrence
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 764466 - Add a primary key to the profiles_activity table
r=glob, a=LpSolit
parent
3dce1aa3
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 @
bfabb024
...
...
@@ -903,6 +903,8 @@ use constant ABSTRACT_SCHEMA => {
profiles_activity
=>
{
FIELDS
=>
[
id
=>
{
TYPE
=>
'MEDIUMSERIAL'
,
NOTNULL
=>
1
,
PRIMARYKEY
=>
1
},
userid
=>
{
TYPE
=>
'INT3'
,
NOTNULL
=>
1
,
REFERENCES
=>
{
TABLE
=>
'profiles'
,
COLUMN
=>
'userid'
,
...
...
Bugzilla/Install/DB.pm
View file @
bfabb024
...
...
@@ -682,6 +682,10 @@ sub update_table_definitions {
$dbh
->
bz_add_column
(
'bugs_activity'
,
'id'
,
{
TYPE
=>
'MEDIUMSERIAL'
,
NOTNULL
=>
1
,
PRIMARYKEY
=>
1
});
# 2012-06-13 dkl@mozilla.com - Bug 764466
$dbh
->
bz_add_column
(
'profiles_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 @
bfabb024
...
...
@@ -32,6 +32,7 @@ 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 since 4.4 has a unique primary key added
profiles_activity
=>
'userid,profiles_when,fieldid'
,
setting_value
=>
'name,value'
,
# longdescs didn't used to have a PK, before 2.20.
...
...
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