From 708c771296bfc839a54dce7e50fa9793fb636457 Mon Sep 17 00:00:00 2001 From: Bjoern Schiessle Date: Thu, 19 Jul 2012 14:35:28 +0200 Subject: [PATCH] update routine to fix broken file properties in db --- apps/files/appinfo/update.php | 11 +++++++++++ apps/files/appinfo/version | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/apps/files/appinfo/update.php b/apps/files/appinfo/update.php index f9953ba4de..88db08e7e2 100644 --- a/apps/files/appinfo/update.php +++ b/apps/files/appinfo/update.php @@ -1,5 +1,16 @@ execute(); + while( $row = $result->fetchRow()){ + $query = OC_DB::prepare( 'UPDATE *PREFIX*properties SET propertyname = ? WHERE userid = ? AND propertypath = ?' ); + $query->execute( array( preg_replace("/{.*}/", "", $row["propertyname"]),$row["userid"], $row["propertypath"] )); + } +} + //update from OC 3 //try to remove remaining files. diff --git a/apps/files/appinfo/version b/apps/files/appinfo/version index 9c1218c201..1b87bcd0b0 100644 --- a/apps/files/appinfo/version +++ b/apps/files/appinfo/version @@ -1 +1 @@ -1.1.3 \ No newline at end of file +1.1.4 \ No newline at end of file