Fork me on GitHub
#datomic
<
2020-07-09
>
JAtkins17:07:11

Can data-types be changed in datomic cloud? I have a :db.type/string that I want to convert to :db.type/long. Every string in the db is a number, but the datomic cloud docs make no refence to type changes.

marshall17:07:02

see the note at the bottom

marshall17:07:11

> `NOTE: You can never alter :db/valueType:db/tupleAttrs:db/tupleTypes, or :db/tupleType.

marshall17:07:55

you can create a new attribute with the type you want and manually “move” the data over

marshall17:07:23

and you can rename the ‘old’ attr if you want to end up with a new attribute that uses the same name as the original