Skip to content

Commit 3cdc786

Browse files
committed
fix: cast section type in migration
1 parent 4316b13 commit 3cdc786

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/migrations/20260427_010_remove_edition_hero_block.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ export async function up({ db }: MigrateUpArgs): Promise<void> {
504504
505505
WITH section_source AS (
506506
SELECT
507-
sections."section_type",
507+
sections."section_type"::text AS "section_type",
508508
sections."link_button_url",
509509
sections_locales."_locale",
510510
sections_locales."heading",
@@ -528,7 +528,7 @@ export async function up({ db }: MigrateUpArgs): Promise<void> {
528528
529529
WITH section_source AS (
530530
SELECT
531-
sections."section_type",
531+
sections."section_type"::text AS "section_type",
532532
sections."link_button_url",
533533
sections_locales."_locale",
534534
sections_locales."heading",
@@ -549,7 +549,7 @@ export async function up({ db }: MigrateUpArgs): Promise<void> {
549549
550550
WITH section_source AS (
551551
SELECT
552-
sections."section_type",
552+
sections."section_type"::text AS "section_type",
553553
sections."link_button_url",
554554
sections_locales."_locale",
555555
sections_locales."heading",
@@ -570,7 +570,7 @@ export async function up({ db }: MigrateUpArgs): Promise<void> {
570570
571571
WITH section_source AS (
572572
SELECT
573-
sections."section_type",
573+
sections."section_type"::text AS "section_type",
574574
sections."link_button_url",
575575
sections_locales."_locale",
576576
sections_locales."heading",
@@ -592,7 +592,7 @@ export async function up({ db }: MigrateUpArgs): Promise<void> {
592592
593593
WITH section_source AS (
594594
SELECT
595-
sections."section_type",
595+
sections."section_type"::text AS "section_type",
596596
sections."link_button_url",
597597
sections_locales."_locale",
598598
sections_locales."heading",

0 commit comments

Comments
 (0)