Skip to content
This repository has been archived by the owner on Jun 11, 2023. It is now read-only.

Commit

Permalink
Remove deprecated cache columns
Browse files Browse the repository at this point in the history
  • Loading branch information
renatomassaro committed Dec 23, 2017
1 parent 18d6f89 commit 88739f6
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
defmodule Helix.Cache.Repo.Migrations.RemoveDeprecatedCacheColumns do
use Ecto.Migration

def change do
drop index(:server_cache, [:entity_id])
drop index(:server_cache, [:motherboard_id])
alter table(:server_cache, primary_key: false) do
remove :entity_id
remove :motherboard_id
remove :resources
remove :components
end

drop table(:component_cache)
end
end

0 comments on commit 88739f6

Please sign in to comment.