summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorBjörn Schießle <bjoern@schiessle.org>2016-08-16 16:24:45 +0200
committerGitHub <noreply@github.com>2016-08-16 16:24:45 +0200
commit9db189174c26326bbb58d96f614a415cd15542d1 (patch)
treed595d277e94d16dea80e3d9f665e29ee0247f606 /apps
parentd14c6ef78cffdb7439470dec0dd948eee91086d6 (diff)
parentb204af2f0f1354a11efad47d9a47535c8c77f729 (diff)
downloadnextcloud-server-9db189174c26326bbb58d96f614a415cd15542d1.tar.gz
nextcloud-server-9db189174c26326bbb58d96f614a415cd15542d1.zip
Merge pull request #870 from nextcloud/oc-missingprefixforlastinsertid
Fix oracle support of external storage app
Diffstat (limited to 'apps')
-rw-r--r--apps/files_external/appinfo/database.xml2
-rw-r--r--apps/files_external/lib/Service/DBConfigService.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_external/appinfo/database.xml b/apps/files_external/appinfo/database.xml
index 54ee642ead6..e39144931a7 100644
--- a/apps/files_external/appinfo/database.xml
+++ b/apps/files_external/appinfo/database.xml
@@ -144,7 +144,7 @@
<field>
<name>value</name>
<type>text</type>
- <notnull>true</notnull>
+ <notnull>false</notnull>
<length>4096</length>
</field>
diff --git a/apps/files_external/lib/Service/DBConfigService.php b/apps/files_external/lib/Service/DBConfigService.php
index a94b73772e7..61cca9a0224 100644
--- a/apps/files_external/lib/Service/DBConfigService.php
+++ b/apps/files_external/lib/Service/DBConfigService.php
@@ -208,7 +208,7 @@ class DBConfigService {
'type' => $builder->createNamedParameter($type, IQueryBuilder::PARAM_INT)
]);
$query->execute();
- return (int)$this->connection->lastInsertId('external_mounts');
+ return (int)$this->connection->lastInsertId('*PREFIX*external_mounts');
}
/**