cleanup and actually execute the query
This commit is contained in:
parent
72ca0a482b
commit
9ae829497a
|
@ -3,10 +3,14 @@
|
||||||
// fix webdav properties,add namespace in front of the property, update for OC4.5
|
// fix webdav properties,add namespace in front of the property, update for OC4.5
|
||||||
$installedVersion=OCP\Config::getAppValue('files', 'installed_version');
|
$installedVersion=OCP\Config::getAppValue('files', 'installed_version');
|
||||||
if (version_compare($installedVersion, '1.1.6', '<')) {
|
if (version_compare($installedVersion, '1.1.6', '<')) {
|
||||||
$concat = OC_DB::getConnection()->getDatabasePlatform()->getConcatExpression( "'{DAV:}'", "`propertyname`" );
|
$concat = OC_DB::getConnection()->getDatabasePlatform()->
|
||||||
$query = OC_DB::prepare( "UPDATE `*PREFIX*properties`
|
getConcatExpression( '\'{DAV:}\'', '`propertyname`' );
|
||||||
SET `propertyname` = $concat
|
$query = OC_DB::prepare('
|
||||||
WHERE `propertyname` LIKE '{%'" );
|
UPDATE `*PREFIX*properties`
|
||||||
|
SET `propertyname` = ' . $concat . '
|
||||||
|
WHERE `propertyname` NOT LIKE \'{%\'
|
||||||
|
');
|
||||||
|
$query->execute();
|
||||||
}
|
}
|
||||||
|
|
||||||
//update from OC 3
|
//update from OC 3
|
||||||
|
|
Loading…
Reference in New Issue