File tree Expand file tree Collapse file tree 4 files changed +19
-3
lines changed Expand file tree Collapse file tree 4 files changed +19
-3
lines changed Original file line number Diff line number Diff line change @@ -28,3 +28,6 @@ test_snapshots_path
28
28
test /test.db
29
29
test /test.db-shm
30
30
test /test.db-wal
31
+ test /dev_test.db
32
+ test /dev_test.db-shm
33
+ test /dev_test.db-wal
Original file line number Diff line number Diff line change @@ -876,14 +876,13 @@ defmodule AshSqlite.MigrationGenerator do
876
876
end
877
877
878
878
defp require_name! ( opts ) do
879
- if ! opts . name && ! opts . dry_run && ! opts . check && ! opts . snapshots_only && ! opts . dev &&
880
- ! opts . auto_name do
879
+ if ! opts . name && ! opts . dry_run && ! opts . check && ! opts . dev && ! opts . auto_name do
881
880
raise """
882
881
Name must be provided when generating migrations, unless `--dry-run` or `--check` or `--dev` is also provided.
883
882
884
883
Please provide a name. for example:
885
884
886
- mix ash_postgres .generate_migrations <name> ...args
885
+ mix ash_sqlite .generate_migrations <name> ...args
887
886
"""
888
887
end
889
888
Original file line number Diff line number Diff line change
1
+ defmodule AshSqlite.DevTestRepo do
2
+ @ moduledoc false
3
+ use AshSqlite.Repo ,
4
+ otp_app: :ash_sqlite
5
+
6
+ def on_transaction_begin ( data ) do
7
+ send ( self ( ) , data )
8
+ end
9
+
10
+ def prefer_transaction? , do: false
11
+
12
+ def prefer_transaction_for_atomic_updates? , do: false
13
+ end
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ ExUnit.start()
2
2
ExUnit . configure ( stacktrace_depth: 100 )
3
3
4
4
AshSqlite.TestRepo . start_link ( )
5
+ AshSqlite.DevTestRepo . start_link ( )
5
6
6
7
Ecto.Adapters.SQL.Sandbox . mode ( AshSqlite.TestRepo , :manual )
7
8
Ecto.Adapters.SQL.Sandbox . mode ( AshSqlite.DevTestRepo , :manual )
You can’t perform that action at this time.
0 commit comments