We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf33460 commit 267cc40Copy full SHA for 267cc40
1 file changed
lib/migration_generator/migration_generator.ex
@@ -2648,7 +2648,13 @@ defmodule AshSqlite.MigrationGenerator do
2648
|> Map.put(:type, type)
2649
|> Map.put(:size, size)
2650
|> Map.put_new(:default, "nil")
2651
- |> Map.update!(:default, &(&1 || "nil"))
+ |> Map.update!(:default, fn value ->
2652
+ if is_nil(value) do
2653
+ "nil"
2654
+ else
2655
+ value
2656
+ end
2657
+ end)
2658
|> Map.update!(:references, fn
2659
nil ->
2660
nil
0 commit comments