add metadata to summoner spell
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
defmodule LoLAnalytics.Repo.Migrations.SummonerSpellMetadata do
|
||||
use Ecto.Migration
|
||||
|
||||
def change do
|
||||
alter table("dim_summoner_spell") do
|
||||
add :metadata, :map
|
||||
end
|
||||
end
|
||||
end
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
defmodule LoLAnalytics.Repo.Migrations.SummonerSpellMetadataIndex do
|
||||
use Ecto.Migration
|
||||
|
||||
def up do
|
||||
execute("CREATE INDEX dim_summoner_spell_metadata ON dim_summoner_spell USING GIN(metadata)")
|
||||
end
|
||||
|
||||
def down do
|
||||
execute("DROP INDEX dim_summoner_spell_metadata")
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user