From: nupplaPhil Date: Fri, 17 Jan 2020 22:47:26 +0000 (+0100) Subject: Fix update script X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=3ea5177c42eb1b958a3eee899d6d9ea7a4ae68af;p=friendica.git Fix update script --- diff --git a/update.php b/update.php index 924fac5458..55fd82b2ed 100644 --- a/update.php +++ b/update.php @@ -425,8 +425,8 @@ function update_1330() } // Update attachments and photos - if (!DBA::p("UPDATE `photo` SET `photo`.`backend-class` = SUBSTR(`photo`.`backend-class`, 22) WHERE `photo`.`backend-class` LIKE 'Friendica\\Model\\Storage\\%'") || - !DBA::p("UPDATE `attach` SET `attach`.`backend-class` = SUBSTR(`attach`.`backend-class`, 22) WHERE `attach`.`backend-class` LIKE 'Friendica\\Model\\Storage\\%'")) { + if (!DBA::p("UPDATE `photo` SET `photo`.`backend-class` = SUBSTR(`photo`.`backend-class`, 25) WHERE `photo`.`backend-class` LIKE 'Friendica\\\Model\\\Storage\\\%' ESCAPE '|'") || + !DBA::p("UPDATE `attach` SET `attach`.`backend-class` = SUBSTR(`attach`.`backend-class`, 25) WHERE `attach`.`backend-class` LIKE 'Friendica\\\Model\\\Storage\\\%' ESCAPE '|'")) { return Update::FAILED; };