Skip to content

Commit

Permalink
Reformatted the migration files
Browse files Browse the repository at this point in the history
  • Loading branch information
GRoguelon committed Jan 4, 2023
1 parent 63d4140 commit a373a1d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ defmodule Money.SQL.Repo.Migrations.AddMoneyWithCurrencyTypeToPostgres do
def down do
execute("DROP TYPE public.money_with_currency;")
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -152,16 +152,15 @@ defmodule Money.SQL.Repo.Migrations.AddPostgresMoneyMinmaxFunctions do
end

def down do

execute("DROP AGGREGATE IF EXISTS max(money_with_currency);")

execute(
"DROP FUNCTION IF EXISTS money_max_combine_function(agg_state1 money_with_currency, agg_state2 money_with_currency);"
)
)

execute(
"DROP FUNCTION IF EXISTS money_max_state_function(agg_state money_with_currency, money money_with_currency);"
)
)

execute("DROP AGGREGATE IF EXISTS min(money_with_currency);")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ defmodule Money.SQL.Repo.Migrations.AddPostgresMoneyPlusOperator do
"DROP FUNCTION IF EXISTS money_add(money_1 money_with_currency, money_2 money_with_currency);"
)
end
end
end

0 comments on commit a373a1d

Please sign in to comment.