datomic

cjohansen 2025-11-10T12:52:30.491969Z

I managed to misconfigure a schema attribute, and now have an attribute that has value type ref that should have been a string. I thought I could delete attributes that have never been asserted, but I'm getting "unsupported-alter-schema". Is there any way I can remove this faulty attribute? It has never been used.

favila 2025-11-10T12:56:45.884109Z

You cannot retract an attribute entity or change it in any other than https://docs.datomic.com/schema/schema-change.html. However note on that page that you can rename an attribute, so you can rename your busted one to something like dontuse and then make a new one using the name you want

cjohansen 2025-11-10T12:57:51.526979Z

Aha, that will partially cover this embarassing mistake πŸ˜… Thanks πŸ™

leifericf 2025-11-10T16:21:28.007149Z

And maybe rename it again to reuse it the next time you need a new attribute πŸ˜…

leifericf 2025-11-10T21:21:23.430529Z

I just so happened to hear about this specific problem and the solution discussed here in https://youtu.be/H854fF6K2_o (at time 42:50).

βž• 1
okwori 2025-11-11T15:03:15.718899Z

I remember this talk, I felt attacked at 43:24 πŸ™‚

πŸ˜‚ 1
silian 2025-11-12T00:05:36.921709Z

https://youtu.be/H854fF6K2_o?t=42m50s

1
leifericf 2025-11-12T05:25:30.495759Z

Thanks! For some reason, I can’t copy links with timestamps in the YouTube mobile app.