summaryrefslogtreecommitdiff
path: root/priv/repo
diff options
context:
space:
mode:
authorLizzy Hunt <elizabeth.hunt@simponic.xyz>2023-03-13 14:13:11 -0600
committerGitHub <noreply@github.com>2023-03-13 14:13:11 -0600
commita1f01d4a2b1ce2a167b7fec1506f3970bf13ea79 (patch)
tree3eb1a991569da428a77155b6e6bb601d00c3eb98 /priv/repo
parent3cb88323c22e72f36d82ae5ada384311123eae67 (diff)
downloadchessh-a1f01d4a2b1ce2a167b7fec1506f3970bf13ea79.tar.gz
chessh-a1f01d4a2b1ce2a167b7fec1506f3970bf13ea79.zip
Move history (#18)
* store move history * Add previous game viewer
Diffstat (limited to 'priv/repo')
-rw-r--r--priv/repo/migrations/20230304031125_add_move_history.exs9
1 files changed, 9 insertions, 0 deletions
diff --git a/priv/repo/migrations/20230304031125_add_move_history.exs b/priv/repo/migrations/20230304031125_add_move_history.exs
new file mode 100644
index 0000000..ce361b6
--- /dev/null
+++ b/priv/repo/migrations/20230304031125_add_move_history.exs
@@ -0,0 +1,9 @@
+defmodule Chessh.Repo.Migrations.AddMoveHistory do
+ use Ecto.Migration
+
+ def change do
+ alter table(:games) do
+ add(:game_moves, :string, size: 1024)
+ end
+ end
+end