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
427d238b
Commit
427d238b
authored
Jan 14, 2005
by
travis%sedsystems.ca
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 278148: checksetup.pl *still* errors when trying to drop index on milestones table
Patch by Max K-A <mkanat@kerio.com> r=travis a=justdave
parent
889d3425
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
checksetup.pl
checksetup.pl
+8
-3
No files found.
checksetup.pl
View file @
427d238b
...
...
@@ -2365,9 +2365,14 @@ sub DropIndexes ($)
#
next
if
exists
$SEEN
{
$$ref
[
2
]};
my
$dropSth
=
$dbh
->
prepare
(
"ALTER TABLE $table DROP INDEX $$ref[2]"
);
$dropSth
->
execute
;
$dropSth
->
finish
;
if
(
$$ref
[
2
]
eq
'PRIMARY'
)
{
# The syntax for dropping a PRIMARY KEY is different
# from the normal DROP INDEX syntax.
$dbh
->
do
(
"ALTER TABLE $table DROP PRIMARY KEY"
);
}
else
{
$dbh
->
do
(
"ALTER TABLE $table DROP INDEX $$ref[2]"
);
}
$SEEN
{
$$ref
[
2
]}
=
1
;
}
...
...
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