From bb66cd91a3e76e9b746750de51b5edd34b5d2259 Mon Sep 17 00:00:00 2001 From: Simponic Date: Fri, 27 Jan 2023 22:31:15 -0700 Subject: Add last move schema, add highlighting in renderer (#13) --- priv/repo/migrations/20230128032207_add_last_move_to_game.exs | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 priv/repo/migrations/20230128032207_add_last_move_to_game.exs (limited to 'priv') 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 -- cgit v1.2.3-70-g09d2