Skip to content

Commit 40e0f78

Browse files
committed
Fix V012 migration: use proper Ecto types for template_type JSON columns
1 parent accf9c3 commit 40e0f78

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

lib/beacon/migrations/v012.ex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ defmodule Beacon.Migrations.V012 do
3636
add :site, :text
3737
add :name, :text, null: false
3838
add :slug, :text, null: false
39-
add :field_definitions, :map, null: false, default: "[]"
40-
add :json_ld_mapping, :map, default: "{}"
41-
add :meta_tag_mapping, :map, default: "{}"
39+
add :field_definitions, {:array, :map}, null: false, default: []
40+
add :json_ld_mapping, :map, default: %{}
41+
add :meta_tag_mapping, {:array, :map}, default: []
4242

4343
timestamps type: :utc_datetime_usec
4444
end

0 commit comments

Comments
 (0)