Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
efaf4d23
Commit
efaf4d23
authored
Dec 10, 2005
by
Dries Buytaert
Browse files
- Patch
#36042
by Cvbge: make the latest database upgrade work with PostgreSQL.
parent
2659fadd
Changes
1
Hide whitespace changes
Inline
Side-by-side
database/updates.inc
View file @
efaf4d23
...
...
@@ -1109,6 +1109,8 @@ function system_update_158() {
break
;
case
'pgsql'
:
db_add_column
(
$ret
,
'old_revisions'
,
'done'
,
'smallint'
,
array
(
'not null'
=>
TRUE
,
'default'
=>
0
));
$ret
[]
=
update_sql
(
'CREATE INDEX {old_revisions}_done_idx ON {old_revisions}(done)'
);
break
;
}
...
...
@@ -1207,9 +1209,11 @@ function system_update_159() {
break
;
case
'pgsql'
:
$ret
[]
=
update_sql
(
"SELECT setval('
{
node_revisions
}
_vid_seq',
$vid
)"
);
break
;
}
// FIXME - wrong - allways will be true? (limit was 20)
if
(
db_num_rows
(
$result
)
<
50
)
{
$ret
[]
=
update_sql
(
'ALTER TABLE {old_revisions} DROP done'
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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