Skip to content

Commit

Permalink
chore: fix spacing in migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
zachdaniel committed May 12, 2024
1 parent c25e0eb commit bfee360
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/ash_money/ash_postgres_extension.ex
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ if Code.ensure_loaded?(AshPostgres.CustomExtension) do

def install(0) do
"""
#{Money.DDL.execute_each(Money.DDL.create_money_with_currency())}
#{Money.DDL.execute_each(add_money_sub())}
#{Money.DDL.execute_each(add_money_neg())}
#{Money.DDL.execute_each(Money.DDL.create_money_with_currency())}
#{Money.DDL.execute_each(Money.DDL.define_plus_operator())}
#{Money.DDL.execute_each(Money.DDL.define_minmax_functions())}
#{Money.DDL.execute_each(Money.DDL.define_sum_function())}
Expand Down Expand Up @@ -68,6 +68,7 @@ if Code.ensure_loaded?(AshPostgres.CustomExtension) do
END;
$$;
CREATE OPERATOR - (
rightarg = money_with_currency,
procedure = money_neg
Expand All @@ -79,6 +80,7 @@ if Code.ensure_loaded?(AshPostgres.CustomExtension) do
"""
DROP OPERATOR -(none, money_with_currency);
DROP FUNCTION IF EXISTS money_neg(money_1 money_with_currency);
"""
end
Expand Down Expand Up @@ -108,6 +110,7 @@ if Code.ensure_loaded?(AshPostgres.CustomExtension) do
END;
$$;
CREATE OPERATOR - (
leftarg = money_with_currency,
rightarg = money_with_currency,
Expand All @@ -121,6 +124,7 @@ if Code.ensure_loaded?(AshPostgres.CustomExtension) do
"""
DROP OPERATOR - (money_with_currency, money_with_currency);
DROP FUNCTION IF EXISTS money_sub(money_1 money_with_currency, money_2 money_with_currency);
"""
end
Expand Down

0 comments on commit bfee360

Please sign in to comment.