summaryrefslogtreecommitdiff
path: root/priv/repo/migrations/20221229225556_add_node.exs
diff options
context:
space:
mode:
authorSimponic <loganhunt@simponic.xyz>2022-12-29 17:21:20 -0700
committerSimponic <loganhunt@simponic.xyz>2022-12-29 17:21:20 -0700
commit1a2bdccf124de6207899f59538cc0ed2efc97b5a (patch)
tree5b582023531c8df637881899ab64d5f5eddd7f3f /priv/repo/migrations/20221229225556_add_node.exs
parent10bc34245e8e1e3ba63fb0720d3bcfb1119db921 (diff)
downloadchessh-1a2bdccf124de6207899f59538cc0ed2efc97b5a.tar.gz
chessh-1a2bdccf124de6207899f59538cc0ed2efc97b5a.zip
Add scalable nodes and user sessions
Diffstat (limited to 'priv/repo/migrations/20221229225556_add_node.exs')
-rw-r--r--priv/repo/migrations/20221229225556_add_node.exs10
1 files changed, 10 insertions, 0 deletions
diff --git a/priv/repo/migrations/20221229225556_add_node.exs b/priv/repo/migrations/20221229225556_add_node.exs
new file mode 100644
index 0000000..f8eace8
--- /dev/null
+++ b/priv/repo/migrations/20221229225556_add_node.exs
@@ -0,0 +1,10 @@
+defmodule Chessh.Repo.Migrations.AddNode do
+ use Ecto.Migration
+
+ def change do
+ create table(:nodes, primary_key: false) do
+ add(:id, :string, primary_key: true)
+ add(:last_start, :utc_datetime)
+ end
+ end
+end