summaryrefslogtreecommitdiff
path: root/priv
diff options
context:
space:
mode:
Diffstat (limited to 'priv')
-rw-r--r--priv/repo/migrations/20230128032207_add_last_move_to_game.exs9
1 files changed, 9 insertions, 0 deletions
diff --git a/priv/repo/migrations/20230128032207_add_last_move_to_game.exs b/priv/repo/migrations/20230128032207_add_last_move_to_game.exs
new file mode 100644
index 0000000..db6199d
--- /dev/null
+++ b/priv/repo/migrations/20230128032207_add_last_move_to_game.exs
@@ -0,0 +1,9 @@
+defmodule Chessh.Repo.Migrations.AddLastMoveToGame do
+ use Ecto.Migration
+
+ def change do
+ alter table(:games) do
+ add(:last_move, :string, null: true)
+ end
+ end
+end