Skip to content

Commit 867060f

Browse files
committed
updates for 1.4.0
1 parent 4111065 commit 867060f

4 files changed

Lines changed: 8 additions & 14 deletions

File tree

lib/blog/accounts/contact.ex

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ defmodule Blog.Accounts.Contact do
44

55
alias Blog.Accounts
66

7-
import EctoEnum, only: [defenum: 3]
8-
defenum TypeEnum, :contact_type, [:email, :phone]
9-
107
schema "contacts" do
118
field :type, :string
129
field :value, :string

mix.exs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,13 @@ defmodule Blog.Mixfile do
3636
{:phoenix, "~> 1.3.0"},
3737
{:phoenix_pubsub, "~> 1.0"},
3838
{:phoenix_ecto, "~> 3.2"},
39-
{:ecto, "~> 2.2.6", override: true},
39+
{:ecto, "~> 2.2.6"},
4040
{:postgrex, ">= 0.0.0"},
4141
{:gettext, "~> 0.11"},
4242
{:cowboy, "~> 1.0"},
43-
{:absinthe, "~> 1.4.0-rc or ~> 1.4", override: true},
44-
{:absinthe_plug, "~> 1.4.0-rc or ~> 1.4", override: true},
43+
{:absinthe, "~> 1.4"},
44+
{:absinthe_plug, "~> 1.4"},
4545
{:absinthe_ecto, ">= 0.0.0"},
46-
{:ecto_enum, "~> 1.0"},
4746
{:comeonin, "~> 4.0"},
4847
{:argon2_elixir, "~> 1.2"},
4948
]

mix.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
%{"absinthe": {:hex, :absinthe, "1.4.0-rc.2", "d04df4e9f5ae7904086e1fcefe09e9216f506fad8f327ee6d2aaa398cc66846c", [], [{:decimal, "~> 1.0", [hex: :decimal, repo: "hexpm", optional: true]}], "hexpm"},
2-
"absinthe_ecto": {:hex, :absinthe_ecto, "0.1.2", "bdee4bef46fa2f8ab931a711dc208c817e86d729a145085845de9a6d03c45135", [], [{:absinthe, "~> 1.3.0", [hex: :absinthe, repo: "hexpm", optional: false]}, {:ecto, ">= 0.0.0", [hex: :ecto, repo: "hexpm", optional: false]}], "hexpm"},
3-
"absinthe_plug": {:hex, :absinthe_plug, "1.4.0-rc.0", "a47c7426e6420b37c233e3a11be2e308a08ad4a18596bbde2b3e618adbbb104d", [], [{:absinthe, "~> 1.4.0-rc", [hex: :absinthe, repo: "hexpm", optional: false]}, {:plug, "~> 1.3.2 or ~> 1.4", [hex: :plug, repo: "hexpm", optional: false]}], "hexpm"},
1+
%{"absinthe": {:hex, :absinthe, "1.4.0", "f2261f4bf62dd03a5fc75472b6ebfaa262f7133386d759cb965067e633888b0c", [], [{:dataloader, "~> 1.0.0", [hex: :dataloader, repo: "hexpm", optional: true]}, {:decimal, "~> 1.0", [hex: :decimal, repo: "hexpm", optional: true]}], "hexpm"},
2+
"absinthe_ecto": {:hex, :absinthe_ecto, "0.1.3", "420b68129e79fe4571a4838904ba03e282330d335da47729ad52ffd7b8c5fcb1", [], [{:absinthe, "~> 1.3.0 or ~> 1.4.0", [hex: :absinthe, repo: "hexpm", optional: false]}, {:ecto, ">= 0.0.0", [hex: :ecto, repo: "hexpm", optional: false]}], "hexpm"},
3+
"absinthe_plug": {:hex, :absinthe_plug, "1.4.0", "321ba4da280d4dcea5d6cce0f4a0b28aba2b32bee25f2f0855a8dc5ca02d29cf", [], [{:absinthe, "~> 1.4", [hex: :absinthe, repo: "hexpm", optional: false]}, {:plug, "~> 1.3.2 or ~> 1.4", [hex: :plug, repo: "hexpm", optional: false]}], "hexpm"},
44
"argon2_elixir": {:hex, :argon2_elixir, "1.2.9", "359502d89aa82c8a0b0b690e752a3120790528b5993299abbbcf0165fa1771bf", [], [{:elixir_make, "~> 0.4", [hex: :elixir_make, repo: "hexpm", optional: false]}], "hexpm"},
55
"comeonin": {:hex, :comeonin, "4.0.3", "4e257dcb748ed1ca2651b7ba24fdbd1bd24efd12482accf8079141e3fda23a10", [], [{:argon2_elixir, "~> 1.2", [hex: :argon2_elixir, repo: "hexpm", optional: true]}, {:bcrypt_elixir, "~> 0.12.1 or ~> 1.0", [hex: :bcrypt_elixir, repo: "hexpm", optional: true]}, {:pbkdf2_elixir, "~> 0.12", [hex: :pbkdf2_elixir, repo: "hexpm", optional: true]}], "hexpm"},
66
"connection": {:hex, :connection, "1.0.4", "a1cae72211f0eef17705aaededacac3eb30e6625b04a6117c1b2db6ace7d5976", [], [], "hexpm"},
@@ -9,7 +9,7 @@
99
"db_connection": {:hex, :db_connection, "1.1.2", "2865c2a4bae0714e2213a0ce60a1b12d76a6efba0c51fbda59c9ab8d1accc7a8", [], [{:connection, "~> 1.0.2", [hex: :connection, repo: "hexpm", optional: false]}, {:poolboy, "~> 1.5", [hex: :poolboy, repo: "hexpm", optional: true]}, {:sbroker, "~> 1.0", [hex: :sbroker, repo: "hexpm", optional: true]}], "hexpm"},
1010
"decimal": {:hex, :decimal, "1.4.1", "ad9e501edf7322f122f7fc151cce7c2a0c9ada96f2b0155b8a09a795c2029770", [], [], "hexpm"},
1111
"ecto": {:hex, :ecto, "2.2.6", "3fd1067661d6d64851a0d4db9acd9e884c00d2d1aa41cc09da687226cf894661", [], [{:db_connection, "~> 1.1", [hex: :db_connection, repo: "hexpm", optional: true]}, {:decimal, "~> 1.2", [hex: :decimal, repo: "hexpm", optional: false]}, {:mariaex, "~> 0.8.0", [hex: :mariaex, repo: "hexpm", optional: true]}, {:poison, "~> 2.2 or ~> 3.0", [hex: :poison, repo: "hexpm", optional: true]}, {:poolboy, "~> 1.5", [hex: :poolboy, repo: "hexpm", optional: false]}, {:postgrex, "~> 0.13.0", [hex: :postgrex, repo: "hexpm", optional: true]}, {:sbroker, "~> 1.0", [hex: :sbroker, repo: "hexpm", optional: true]}], "hexpm"},
12-
"ecto_enum": {:hex, :ecto_enum, "1.0.2", "866f717cffbf33561ccacdb55d68e444dd76a54cd76f313620d1a516da304e49", [], [{:ecto, "~> 2.1.0", [hex: :ecto, repo: "hexpm", optional: false]}, {:mariaex, "~> 0.8.0", [hex: :mariaex, repo: "hexpm", optional: true]}, {:postgrex, "~> 0.13.0", [hex: :postgrex, repo: "hexpm", optional: true]}], "hexpm"},
12+
"ecto_enum": {:hex, :ecto_enum, "0.3.1", "28771a73c195553b32b434f926302092ba072ba2b50224b8d63081cad5e0846b", [], [{:ecto, ">= 0.13.1", [hex: :ecto, repo: "hexpm", optional: false]}, {:mariaex, ">= 0.3.0", [hex: :mariaex, repo: "hexpm", optional: true]}, {:postgrex, ">= 0.8.3", [hex: :postgrex, repo: "hexpm", optional: true]}], "hexpm"},
1313
"elixir_make": {:hex, :elixir_make, "0.4.0", "992f38fabe705bb45821a728f20914c554b276838433349d4f2341f7a687cddf", [], [], "hexpm"},
1414
"gettext": {:hex, :gettext, "0.13.1", "5e0daf4e7636d771c4c71ad5f3f53ba09a9ae5c250e1ab9c42ba9edccc476263", [], [], "hexpm"},
1515
"mime": {:hex, :mime, "1.1.0", "01c1d6f4083d8aa5c7b8c246ade95139620ef8effb009edde934e0ec3b28090a", [], [], "hexpm"},

priv/repo/migrations/20171024211706_create_contacts.exs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@ defmodule Blog.Repo.Migrations.CreateContacts do
22
use Ecto.Migration
33

44
def up do
5-
Blog.Accounts.Contact.TypeEnum.create_type()
65
create table(:contacts) do
7-
add :type, :contact_type, null: false
6+
add :type, :string, null: false
87
add :value, :string, null: false
98
add :user_id, references(:users, on_delete: :nothing)
109

@@ -19,6 +18,5 @@ defmodule Blog.Repo.Migrations.CreateContacts do
1918
drop index(:contacts, [:user_id])
2019
drop unique_index(:contacts, [:type, :value])
2120
drop table(:contacts)
22-
Blog.Accounts.Contact.TypeEnum.drop_type()
2321
end
2422
end

0 commit comments

Comments
 (0)