Fix event unsigned having default empty map in db

This commit is contained in:
Pim Kunis 2021-09-05 23:09:29 +02:00
parent 27c673e07a
commit e4a6d36200
2 changed files with 1 additions and 2 deletions

View file

@ -43,7 +43,7 @@ defmodule Architex.Repo.Migrations.CreateInitialTables do
add :signatures, :map, null: false
add :state_key, :string, null: true
add :type, :string, null: false
add :unsigned, :map, default: %{}, null: true
add :unsigned, :map, null: true
end
create index(:events, [:id], unique: true)