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"); } }