2
0

♻️ Migrate default background to white

Closes #248
This commit is contained in:
Baptiste Arnaud
2023-01-24 14:50:29 +01:00
parent 2d51a8a359
commit ff62b922a0
9 changed files with 48 additions and 8 deletions

View File

@ -0,0 +1,16 @@
-- Set background to white for all themes that have no background color set
UPDATE
"Typebot" t
SET
"theme" = jsonb_set(
jsonb_set(
t."theme",
'{general,background,type}',
'"Color"'
),
'{general,background,content}',
'"#FFFFFF"'
),
"updatedAt" = now()
WHERE
t."theme" -> 'general' -> 'background' ->> 'type' = 'None'

View File

@ -58,7 +58,10 @@ export const defaultTheme: Theme = {
placeholderColor: '#9095A0',
},
},
general: { font: 'Open Sans', background: { type: BackgroundType.NONE } },
general: {
font: 'Open Sans',
background: { type: BackgroundType.COLOR, content: '#ffffff' },
},
}
export type Theme = z.infer<typeof themeSchema>