merge migrations
This commit is contained in:
parent
2f444e4218
commit
987339f517
@ -5,6 +5,7 @@ defmodule LoLAnalytics.Repo.Migrations.Match do
|
|||||||
create table("match", id: false) do
|
create table("match", id: false) do
|
||||||
add :match_id, :string, primary_key: true
|
add :match_id, :string, primary_key: true
|
||||||
add :processed, :boolean
|
add :processed, :boolean
|
||||||
|
add :status, :string, default: "queued"
|
||||||
timestamps()
|
timestamps()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -6,6 +6,7 @@ defmodule LoLAnalytics.Repo.Migrations.Player do
|
|||||||
add :puuid, :string, primary_key: true
|
add :puuid, :string, primary_key: true
|
||||||
add :region, :string
|
add :region, :string
|
||||||
add :last_processed_at, :utc_datetime
|
add :last_processed_at, :utc_datetime
|
||||||
|
add :status, :string, default: "queued"
|
||||||
timestamps()
|
timestamps()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -1,13 +0,0 @@
|
|||||||
defmodule LoLAnalytics.Repo.Migrations.MatchAndPlayerStatus do
|
|
||||||
use Ecto.Migration
|
|
||||||
|
|
||||||
def change do
|
|
||||||
alter table("match") do
|
|
||||||
add :status, :string, default: "processed"
|
|
||||||
end
|
|
||||||
|
|
||||||
alter table("player") do
|
|
||||||
add :status, :string, default: "processed"
|
|
||||||
end
|
|
||||||
end
|
|
||||||
end
|
|
Loading…
x
Reference in New Issue
Block a user