Skip to content

Commit 709e02a

Browse files
Add a game_states column to the database.
1 parent d2fc579 commit 709e02a

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
defmodule Cadet.Repo.Migrations.AddUserGameStates do
2+
use Ecto.Migration
3+
4+
def change do
5+
alter table(:users) do
6+
add(:game_states, :map, default: %{collectibles: %{}, save_data: %{
7+
action_sequence: [], start_location: ""
8+
}})
9+
end
10+
end
11+
end

0 commit comments

Comments
 (0)