It seems the UUID field type in retool db is no longer nullable. Or has ANY settings at all for that matter.
Even worse: as default value it sets a RANDOM UUID, so we can no longer distinguish which ones are set by us. None of these were set by us, but appeared after a migration of a new UUID column:
We have older tables with UUID fields that are nullable:
@perelin,
Can you clarify what you mean when you said "None of these were set by us, but appeared after a migration of a new UUID column"? Exactly what steps did you take?
When I add a UUID column to an existing table, all column fields are populated with random UUIDs by default. No way to configure this. I want to be able to set the default value to null, so we can populate the column fields when we need them.
Instead of choosing "UUID" type, choose "custom" under the Field type, and then in the PostgreSQL type, select UUID. This option will allow you to set default values to null
Adding a note here (for search purposes) that if you are using the UUID type in a table and are attempting to add a record you may see an error similar to this:
statusCode: 422
error: "Unprocessable Entity"
message: "Insert into <table_name> failed: you must satisfy the constraint '<table_name> <column_name> key'"