projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
63f7f50
)
Fix ADD COLUMN query when using Oracle.
author
Jan Schneider
<jan@horde.org>
Thu, 15 Oct 2009 09:51:44 +0000
(11:51 +0200)
committer
Jan Schneider
<jan@horde.org>
Thu, 15 Oct 2009 09:58:16 +0000
(11:58 +0200)
turba/scripts/upgrades/2.1_to_2.2_sql_schema.php
patch
|
blob
|
history
diff --git
a/turba/scripts/upgrades/2.1_to_2.2_sql_schema.php
b/turba/scripts/upgrades/2.1_to_2.2_sql_schema.php
index
0246b74
..
d868818
100755
(executable)
--- a/
turba/scripts/upgrades/2.1_to_2.2_sql_schema.php
+++ b/
turba/scripts/upgrades/2.1_to_2.2_sql_schema.php
@@
-114,6
+114,9
@@
default:
/* @TODO - Better error handling */
$error = false;
foreach ($queries as $query) {
+ if ($config['phptype'] == 'oci8') {
+ $query = str_replace('ADD COLUMN', 'ADD', $query);
+ }
if ($for_real) {
$results = $db->query($query);
if (is_a($results, 'PEAR_Error')) {