datomic

Joe R. Smith 2026-02-24T13:59:25.574479Z

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 😉

favila 2026-02-24T14:01:21.800539Z

UUIDs and strings are completely disjoint sets of values, there's no widening

Joe R. Smith 2026-02-24T14:01:58.894399Z

Not sure what you mean - uuid is a constrained string, right?

favila 2026-02-24T14:02:12.198459Z

A uuid is 128 bits

👍 1
Joe Lane 2026-02-24T14:02:30.462119Z

/ignore-all-replies ;)

favila 2026-02-24T14:02:34.245989Z

It has many string representations

favila 2026-02-24T14:03:31.819109Z

To your question: it's hard to see how time travel can be comprehensible with the attribute changing type over time

Joe R. Smith 2026-02-24T14:03:34.161909Z

Got it. Fine, I'll just have to break out "2"

😂 1
2️⃣ 1
favila 2026-02-24T14:04:02.106329Z

It would also involve compromises to performance (fewer invariants to rely on)

favila 2026-02-24T14:04:18.647559Z

So in summary: it's hard, and would be confusing

Joe R. Smith 2026-02-24T14:04:18.970529Z

Well, in my case it doesn't matter, I haven't even used the attribute yet. I fucked it up before using it.

Joe R. Smith 2026-02-24T14:04:31.636969Z

Yeah yeah, I know the why.

Joe R. Smith 2026-02-24T14:04:34.717709Z

;)

favila 2026-02-24T14:04:37.522399Z

You can rename the attribute if you just want the ident

favila 2026-02-24T14:05:11.810099Z

Rename your junk attr to something that makes clear it is junk, then add your new one with its old name

Joe R. Smith 2026-02-24T14:05:21.873059Z

I don't remember that being the case- I can rename it and then use the OG again as a different type?

favila 2026-02-24T14:05:40.899049Z

Yes

Joe R. Smith 2026-02-24T14:05:42.895859Z

Got it. I'll do that.

Joe R. Smith 2026-02-24T14:05:47.495829Z

Thanks