zoonect-oss / ash_uuid

AshUUID: Extension for using UUID v4 and v7, with supports encoding and prefixing
https://hexdocs.pm/ash_uuid
MIT License
13 stars 7 forks source link

Migration adding default: nil to uuid after upgrade to 0.6.0 #6

Closed sezaru closed 9 months ago

sezaru commented 1 year ago

After upgrading ash_uuid from 0.5.0 to 0.6.0, I noticed that generating a new migration will generate this change to every table that uses ash_uuid:

    alter table(:users) do
      modify :id, :uuid, default: nil
    end

This doesn´t seem correct since I don't want my primary key to be nil, is this on purpose, if so, what is the reasoning?

moissela commented 9 months ago

This issue should be resolved in v0.7.0 just released, sorry for the delay: I've been very busy.

Thanks for the feedback @sezaru and let me know if it works as expected 😉