From e11a775bed928a3adabc0029e05d452397cce471 Mon Sep 17 00:00:00 2001 From: "nicolas.dorier" Date: Tue, 29 Nov 2022 11:29:35 +0900 Subject: [PATCH] fix migration --- BTCPayServer.Data/Migrations/20221128062447_jsonb.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BTCPayServer.Data/Migrations/20221128062447_jsonb.cs b/BTCPayServer.Data/Migrations/20221128062447_jsonb.cs index 1ad733a49..d69070272 100644 --- a/BTCPayServer.Data/Migrations/20221128062447_jsonb.cs +++ b/BTCPayServer.Data/Migrations/20221128062447_jsonb.cs @@ -19,7 +19,7 @@ namespace BTCPayServer.Migrations if (migrationBuilder.IsNpgsql()) { migrationBuilder.Sql("ALTER TABLE \"Settings\" ALTER COLUMN \"Value\" TYPE JSONB USING \"Value\"::JSONB"); - migrationBuilder.Sql("ALTER TABLE \"Stores\" ALTER COLUMN \"StoreBlob\" TYPE JSONB USING regexp_replace(convert_from(\"StoreBlob\",'UTF8'), '\\u0000', '', 'g')::JSONB"); + migrationBuilder.Sql("ALTER TABLE \"Stores\" ALTER COLUMN \"StoreBlob\" TYPE JSONB USING regexp_replace(convert_from(\"StoreBlob\",'UTF8'), '\\\\u0000', '', 'g')::JSONB"); } }