Run mix format on Elixir 12
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
@@ -36,9 +36,7 @@ defmodule Mobilizon.Storage.Repo.Migrations.RenamePostgresTypes do
|
||||
with %Postgrex.Result{columns: ["exists"], rows: [[true]]} <-
|
||||
Ecto.Adapters.SQL.query!(
|
||||
Mobilizon.Storage.Repo,
|
||||
"select exists (select 1 from pg_type where typname = '#{
|
||||
old_type_name |> remove_schema
|
||||
}' and typnamespace = (select oid from pg_namespace where nspname = 'public'))"
|
||||
"select exists (select 1 from pg_type where typname = '#{old_type_name |> remove_schema}' and typnamespace = (select oid from pg_namespace where nspname = 'public'))"
|
||||
) do
|
||||
Ecto.Migration.execute(
|
||||
"ALTER TYPE #{old_type_name |> remove_schema} RENAME TO #{new_type_name |> remove_schema}"
|
||||
|
||||
@@ -18,9 +18,7 @@ defmodule Mobilizon.Storage.Repo.Migrations.AddMemberSinceToMembers do
|
||||
if role in ["member", "moderator", "administrator", "creator"] do
|
||||
Ecto.Adapters.SQL.query!(
|
||||
Mobilizon.Storage.Repo,
|
||||
"UPDATE members SET member_since = '#{DateTime.to_iso8601(DateTime.utc_now())}' WHERE id = '#{
|
||||
Ecto.UUID.cast!(id)
|
||||
}'"
|
||||
"UPDATE members SET member_since = '#{DateTime.to_iso8601(DateTime.utc_now())}' WHERE id = '#{Ecto.UUID.cast!(id)}'"
|
||||
)
|
||||
end
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user