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
32882b6e
Commit
32882b6e
authored
Feb 25, 2005
by
travis%sedsystems.ca
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 277504 : quips migrated from quip file have an (invalid) userid of 0
Patch by Frederic Buclin <LpSolit@gmail.com> r=mkanat a=myk
parent
b8a8680e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
checksetup.pl
checksetup.pl
+12
-1
No files found.
checksetup.pl
View file @
32882b6e
...
...
@@ -1992,10 +1992,11 @@ $table{bug_group_map} =
index(group_id)'
;
# 2002-07-19, davef@tetsubo.com, bug 67950:
# 2005-02-20, LpSolit@gmail.com, bug 277504
# Store quips in the db.
$table
{
quips
}
=
'quipid mediumint not null auto_increment primary key,
userid mediumint n
ot null default 0
,
userid mediumint n
ull
,
quip text not null,
approved tinyint(1) not null default 1'
;
...
...
@@ -4263,6 +4264,16 @@ ChangeFieldType ('bugs', 'bug_severity', 'varchar(64) not null');
ChangeFieldType
(
'bugs'
,
'rep_platform'
,
'varchar(64) not null'
);
ChangeFieldType
(
'bugs'
,
'op_sys'
,
'varchar(64) not null'
);
# 2005-02-20 - LpSolit@gmail.com - Bug 277504
# When migrating quips from the '$datadir/comments' file to the DB,
# the user ID should be NULL instead of 0 (which is an invalid user ID).
if
(
!
GetFieldDef
(
'quips'
,
'userid'
)
->
[
2
])
{
ChangeFieldType
(
'quips'
,
'userid'
,
'mediumint null'
);
print
"Changing owner to NULL for quips where the owner is unknown...\n"
;
$dbh
->
do
(
'UPDATE quips SET userid = NULL WHERE userid = 0'
);
}
# If you had to change the --TABLE-- definition in any way, then add your
# differential change code *** A B O V E *** this comment.
#
...
...
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