Skip to content

Commit e453914

Browse files
committed
chore: format/credo
1 parent 23a4df0 commit e453914

2 files changed

Lines changed: 18 additions & 15 deletions

File tree

lib/migration_generator/migration_generator.ex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1256,7 +1256,8 @@ defmodule AshPostgres.MigrationGenerator do
12561256
|> Enum.max(fn -> 0 end)
12571257
|> Kernel.+(1)
12581258

1259-
{"#{timestamp()}_migrate_resources#{count}#{split_suffix}", "migrate_resources#{count}#{split_suffix}"}
1259+
{"#{timestamp()}_migrate_resources#{count}#{split_suffix}",
1260+
"migrate_resources#{count}#{split_suffix}"}
12601261
end
12611262

12621263
migration_file =

lib/migration_generator/operation.ex

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -929,20 +929,22 @@ defmodule AshPostgres.MigrationGenerator.Operation do
929929

930930
import Helper
931931

932-
def up(%{
933-
identity: %{
934-
name: name,
935-
keys: keys,
936-
nils_distinct?: nils_distinct?,
937-
where: where,
938-
base_filter: base_filter,
939-
index_name: index_name,
940-
all_tenants?: all_tenants?
941-
},
942-
table: table,
943-
schema: schema,
944-
multitenancy: multitenancy
945-
} = op) do
932+
def up(
933+
%{
934+
identity: %{
935+
name: name,
936+
keys: keys,
937+
nils_distinct?: nils_distinct?,
938+
where: where,
939+
base_filter: base_filter,
940+
index_name: index_name,
941+
all_tenants?: all_tenants?
942+
},
943+
table: table,
944+
schema: schema,
945+
multitenancy: multitenancy
946+
} = op
947+
) do
946948
keys = index_keys(keys, all_tenants?, multitenancy)
947949

948950
index_name = index_name || "#{table}_#{name}_index"

0 commit comments

Comments
 (0)