feat: 增加品牌通用扩展配置
This commit is contained in:
1 parent
270136d24e
commit
73e21e6b0d
5 files changed
+22
-1
No files matched your search
@@ -0,0 +1,11 @@
|
||||
ALTER TABLE "BrandProfile" ADD COLUMN "config" JSONB;
|
||||
|
||||
UPDATE "BrandProfile"
|
||||
SET "config" = jsonb_strip_nulls(jsonb_build_object(
|
||||
'legacyIndustryFields', jsonb_strip_nulls(jsonb_build_object(
|
||||
'hours', "hours",
|
||||
'address', "address",
|
||||
'deliveryNote', "deliveryNote"
|
||||
))
|
||||
))
|
||||
WHERE "hours" IS NOT NULL OR "address" IS NOT NULL OR "deliveryNote" IS NOT NULL;
|
||||
Reference in new issue
Block a user