Anyone know why an attribute of type :db.type/uuid cannot be altered to :db.type/string? It seems like a widening of the type. Maybe @joe.lane 😉
UUIDs and strings are completely disjoint sets of values, there's no widening
Not sure what you mean - uuid is a constrained string, right?
A uuid is 128 bits
/ignore-all-replies ;)
It has many string representations
To your question: it's hard to see how time travel can be comprehensible with the attribute changing type over time
Got it. Fine, I'll just have to break out "2"
It would also involve compromises to performance (fewer invariants to rely on)
So in summary: it's hard, and would be confusing
Well, in my case it doesn't matter, I haven't even used the attribute yet. I fucked it up before using it.
Yeah yeah, I know the why.
;)
You can rename the attribute if you just want the ident
Rename your junk attr to something that makes clear it is junk, then add your new one with its old name
I don't remember that being the case- I can rename it and then use the OG again as a different type?
Yes
Got it. I'll do that.
Thanks