summaryrefslogtreecommitdiff
path: root/priv
diff options
context:
space:
mode:
authorLogan Hunt <logan.hunt@usu.edu>2023-01-31 14:01:35 -0700
committerLogan Hunt <logan.hunt@usu.edu>2023-01-31 14:04:23 -0700
commitcac78a4f4eced88878e746d96b305ecc62826494 (patch)
tree33d1d43d7049a30753af82bab600f721e9f8ac67 /priv
parente5d97870a12ec87bd463b7657923bb79d3bcb4cc (diff)
downloadchessh-cac78a4f4eced88878e746d96b305ecc62826494.tar.gz
chessh-cac78a4f4eced88878e746d96b305ecc62826494.zip
Move to discord oauth
Diffstat (limited to 'priv')
-rw-r--r--priv/repo/migrations/20221219082326_create_player.exs4
1 files changed, 2 insertions, 2 deletions
diff --git a/priv/repo/migrations/20221219082326_create_player.exs b/priv/repo/migrations/20221219082326_create_player.exs
index 8044344..0e605c9 100644
--- a/priv/repo/migrations/20221219082326_create_player.exs
+++ b/priv/repo/migrations/20221219082326_create_player.exs
@@ -5,13 +5,13 @@ defmodule Chessh.Repo.Migrations.CreatePlayer do
execute("CREATE EXTENSION IF NOT EXISTS citext", "")
create table(:players) do
- add(:github_id, :integer, null: false)
+ add(:discord_id, :string, null: false)
add(:username, :citext, null: false)
add(:hashed_password, :string, null: true)
timestamps()
end
create(unique_index(:players, [:username]))
- create(unique_index(:players, [:github_id]))
+ create(unique_index(:players, [:discord_id]))
end
end