Skip to content

Commit

Permalink
END-013 - Bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
vereis committed Nov 8, 2024
1 parent 2c8fd2f commit 8451a9a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ defmodule Endo.MixProject do
def project do
[
app: :endo,
version: "0.1.21",
version: "0.1.22",
elixir: "~> 1.13",
start_permanent: Mix.env() == :prod,
deps: deps(),
Expand Down
6 changes: 5 additions & 1 deletion test/endo_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -491,13 +491,17 @@ defmodule EndoTest do
test "given a single table, returns whether columns are nullable" do
accounts_orgs = Endo.get_table(Test.Postgres.Repo, "accounts_orgs")

assert length(accounts_orgs.columns) == 2
assert length(accounts_orgs.columns) == 4

org_id = Enum.find(accounts_orgs.columns, &(&1.name == "org_id"))
account_id = Enum.find(accounts_orgs.columns, &(&1.name == "account_id"))
updated_at = Enum.find(accounts_orgs.columns, &(&1.name == "updated_at"))
inserted_at = Enum.find(accounts_orgs.columns, &(&1.name == "inserted_at"))

assert org_id.is_nullable
refute account_id.is_nullable
refute updated_at.is_nullable
refute inserted_at.is_nullable
end

test "given a single table, fetches all indexes for each column" do
Expand Down

0 comments on commit 8451a9a

Please sign in to comment.