summaryrefslogtreecommitdiff
path: root/priv/repo/migrations/20230128032207_add_last_move_to_game.exs
diff options
context:
space:
mode:
authorSimponic <loganhunt@simponic.xyz>2023-01-27 22:31:15 -0700
committerGitHub <noreply@github.com>2023-01-27 22:31:15 -0700
commitbb66cd91a3e76e9b746750de51b5edd34b5d2259 (patch)
tree8aa25e9f3bb2fdcee4e5c3d7db71c39c7f71b7e6 /priv/repo/migrations/20230128032207_add_last_move_to_game.exs
parent841ea41daea82897b9612e56a47cbc8dd47913c1 (diff)
downloadchessh-bb66cd91a3e76e9b746750de51b5edd34b5d2259.tar.gz
chessh-bb66cd91a3e76e9b746750de51b5edd34b5d2259.zip
Add last move schema, add highlighting in renderer (#13)
Diffstat (limited to 'priv/repo/migrations/20230128032207_add_last_move_to_game.exs')
-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