From fa23bfd7d57d0bb59747533d186ad3e84cb3f9d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Wed, 2 Mar 2022 16:02:23 +0100 Subject: [PATCH] fix upgrade formula for phonenumber --- src/Bundle/ChillMainBundle/migrations/Version20220302132728.php | 2 +- .../ChillPersonBundle/migrations/Version20220215135509.php | 2 +- .../ChillThirdPartyBundle/migrations/Version20220302143821.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Bundle/ChillMainBundle/migrations/Version20220302132728.php b/src/Bundle/ChillMainBundle/migrations/Version20220302132728.php index 5ba010cff..1c0ef50ca 100644 --- a/src/Bundle/ChillMainBundle/migrations/Version20220302132728.php +++ b/src/Bundle/ChillMainBundle/migrations/Version20220302132728.php @@ -64,7 +64,7 @@ final class Version20220302132728 extends AbstractMigration implements Container return sprintf('%s=CASE WHEN %s = \'\' THEN NULL WHEN LEFT(%s, 1) = \'0\' - THEN \'%s\' || replace(replace(substr(%s, 2), \'(0)\', \'\'), \' \', \'\') + THEN \'+%s\' || replace(replace(substr(%s, 2), \'(0)\', \'\'), \' \', \'\') ELSE replace(replace(%s, \'(0)\', \'\'),\' \', \'\') END', $field, $field, $field, $countryCode, $field, $field); } diff --git a/src/Bundle/ChillPersonBundle/migrations/Version20220215135509.php b/src/Bundle/ChillPersonBundle/migrations/Version20220215135509.php index 1856c2bd1..b54483955 100644 --- a/src/Bundle/ChillPersonBundle/migrations/Version20220215135509.php +++ b/src/Bundle/ChillPersonBundle/migrations/Version20220215135509.php @@ -79,7 +79,7 @@ final class Version20220215135509 extends AbstractMigration implements Container return sprintf('%s=CASE WHEN %s = \'\' THEN NULL WHEN LEFT(%s, 1) = \'0\' - THEN \'%s\' || replace(replace(substr(%s, 2), \'(0)\', \'\'), \' \', \'\') + THEN \'+%s\' || replace(replace(substr(%s, 2), \'(0)\', \'\'), \' \', \'\') ELSE replace(replace(%s, \'(0)\', \'\'),\' \', \'\') END', $field, $field, $field, $countryCode, $field, $field); } diff --git a/src/Bundle/ChillThirdPartyBundle/migrations/Version20220302143821.php b/src/Bundle/ChillThirdPartyBundle/migrations/Version20220302143821.php index 783cf8806..c70f456d6 100644 --- a/src/Bundle/ChillThirdPartyBundle/migrations/Version20220302143821.php +++ b/src/Bundle/ChillThirdPartyBundle/migrations/Version20220302143821.php @@ -28,7 +28,7 @@ final class Version20220302143821 extends AbstractMigration implements Container return sprintf('%s=CASE WHEN %s = \'\' THEN NULL WHEN LEFT(%s, 1) = \'0\' - THEN \'%s\' || replace(replace(substr(%s, 2), \'(0)\', \'\'), \' \', \'\') + THEN \'+%s\' || replace(replace(substr(%s, 2), \'(0)\', \'\'), \' \', \'\') ELSE replace(replace(%s, \'(0)\', \'\'),\' \', \'\') END', $field, $field, $field, $countryCode, $field, $field); }