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
c253b28a
Commit
c253b28a
authored
Aug 03, 2009
by
mkanat%bugzilla.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Additional fix for bug 508023, to make upgrades from 3.1.4 succeed.
parent
4d048661
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
Mysql.pm
Bugzilla/DB/Schema/Mysql.pm
+4
-2
No files found.
Bugzilla/DB/Schema/Mysql.pm
View file @
c253b28a
...
...
@@ -189,8 +189,10 @@ sub get_alter_column_ddl {
my
%
new_defaultless
=
%
$new_def
;
delete
$old_defaultless
{
DEFAULT
};
delete
$new_defaultless
{
DEFAULT
};
if
(
$self
->
columns_equal
(
\%
new_defaultless
,
\%
old_defaultless
))
{
if
(
defined
$old_def
->
{
DEFAULT
}
and
!
defined
$new_def
->
{
DEFAULT
})
{
if
(
!
$self
->
columns_equal
(
$old_def
,
$new_def
)
&&
$self
->
columns_equal
(
\%
new_defaultless
,
\%
old_defaultless
))
{
if
(
!
defined
$new_def
->
{
DEFAULT
})
{
push
(
@statements
,
"ALTER TABLE $table ALTER COLUMN $column DROP DEFAULT"
);
}
...
...
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