This repository has been archived by the owner on Jun 11, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
18d6f89
commit 308a54f
Showing
2 changed files
with
28 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
priv/repo/cache/migrations/20171223112419_remove_deprecated_cache_columns.exs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |