[Pkg-owncloud-commits] [owncloud] 45/153: Add error handling for --clear-schema on Oracle.
David Prévot
taffit at moszumanska.debian.org
Tue May 27 03:05:33 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository owncloud.
commit b0e6542dc2a72289a396d2e29604e4e83a6136a2
Author: Andreas Fischer <bantu at owncloud.com>
Date: Mon Apr 14 18:29:47 2014 +0200
Add error handling for --clear-schema on Oracle.
---
core/command/db/converttype.php | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/core/command/db/converttype.php b/core/command/db/converttype.php
index 6ab2d89..64178d1 100644
--- a/core/command/db/converttype.php
+++ b/core/command/db/converttype.php
@@ -120,6 +120,17 @@ class ConvertType extends Command {
$toDB = $this->getToDBConnection($input, $output);
if ($input->getOption('clear-schema')) {
+ if ($input->getArgument('type') === 'oci') {
+ // Doctrine unconditionally tries (at least in version 2.3)
+ // to drop sequence triggers when dropping a table, even though
+ // such triggers may not exist. This results in errors like
+ // "ORA-04080: trigger 'OC_STORAGES_AI_PK' does not exist".
+ $output->writeln(sprintf(
+ '<error>The --clear-schema option is not supported when converting to Oracle (oci).</error>',
+ $input->getArgument('type')
+ ));
+ return 1;
+ }
$this->clearSchema($toDB->getSchemaManager(), $input, $output);
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list