Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
7355739b
Commit
7355739b
authored
May 10, 2005
by
Dries
Browse files
- Patch
#21252
by baudolino: fixed upgrade path of locale_sources table change.
parent
655289b8
Changes
1
Hide whitespace changes
Inline
Side-by-side
database/updates.inc
View file @
7355739b
...
@@ -112,7 +112,8 @@
...
@@ -112,7 +112,8 @@
"2005-04-24"
=>
"update_133"
,
"2005-04-24"
=>
"update_133"
,
"2005-04-30"
=>
"update_134"
,
"2005-04-30"
=>
"update_134"
,
"2005-05-06"
=>
"update_135"
,
"2005-05-06"
=>
"update_135"
,
"2005-05-08"
=>
"update_136"
"2005-05-08"
=>
"update_136"
,
"2005-05-09"
=>
"update_137"
);
);
function
update_32
()
{
function
update_32
()
{
...
@@ -2456,6 +2457,23 @@ function update_136() {
...
@@ -2456,6 +2457,23 @@ function update_136() {
return
$ret
;
return
$ret
;
}
}
function
update_137
()
{
$ret
=
array
();
if
(
$GLOBALS
[
'db_type'
]
==
'mysql'
)
{
$ret
[]
=
update_sql
(
"ALTER TABLE
{
locales_source
}
CHANGE location location varchar(255) NOT NULL default ''"
);
}
elseif
(
$GLOBALS
[
'db_type'
]
==
'pgsql'
)
{
$ret
[]
=
update_sql
(
"ALTER TABLE
{
locales_source
}
RENAME location TO location_old"
);
$ret
[]
=
update_sql
(
"ALTER TABLE
{
locales_source
}
ADD location varchar(255)"
);
$ret
[]
=
update_sql
(
"ALTER TABLE
{
locales_source
}
ALTER location SET NOT NULL"
);
$ret
[]
=
update_sql
(
"ALTER TABLE
{
locales_source
}
ALTER location SET DEFAULT ''"
);
$ret
[]
=
update_sql
(
"UPDATE
{
locales_source
}
SET location = location_old"
);
$ret
[]
=
update_sql
(
"ALTER TABLE
{
locales_source
}
DROP location_old"
);
}
return
$ret
;
}
function
update_sql
(
$sql
)
{
function
update_sql
(
$sql
)
{
$edit
=
$_POST
[
"edit"
];
$edit
=
$_POST
[
"edit"
];
$result
=
db_query
(
$sql
);
$result
=
db_query
(
$sql
);
...
...
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