Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit19b3ccf

Browse files
committed
chore: format changes
Signed-off-by: transhapHigsn <fet.prashantsingh@gmail.com>
1 parent0dc1f20 commit19b3ccf

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

‎lib/migration_generator/migration_generator.ex‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -333,12 +333,13 @@ defmodule AshPostgres.MigrationGenerator do
333333
snapshot_folder
334334
|>Path.join(snapshot.table<>".version.json")
335335

336-
version_binary=snapshot_to_binary(%{
337-
latest_version:snapshot_file
338-
})
336+
version_binary=
337+
snapshot_to_binary(%{
338+
latest_version:snapshot_file
339+
})
340+
339341
File.mkdir_p(Path.dirname(version_file))
340342
File.write!(version_file,version_binary,[])
341-
342343
end)
343344
end
344345

@@ -955,6 +956,7 @@ defmodule AshPostgres.MigrationGenerator do
955956

956957
# get name of latest version file.
957958
version_file=Path.join(folder,snapshot.table<>".version.json")
959+
958960
file=
959961
ifFile.exists?(version_file)do
960962
file_content=

‎test/migration_generator_test.exs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ defmodule AshPostgres.MigrationGeneratorTest do
9090

9191
test"the snapshots contain valid json"do
9292
assertFile.exists?(Path.join(["test_snapshots_path","test_repo","posts.version.json"]))
93+
9394
assertFile.read!(Path.wildcard("test_snapshots_path/test_repo/*_posts.json"))
9495
|>Jason.decode!(keys::atoms!)
9596

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp