How to change property type for migration, properly? #4899
-
I changed a boolean property to an
When attempting to update a document, I get |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
I tried this migration, and was able to pull it off successfully. Here's what I did. I started with this schema:
I inserted a few objects with different values for
I ran this: edgedb migration create && edgedb migrate When it prompted me to cast the values in the revised property, I gave it this expression:
I ran a query to confirm all After this, I was able to update objects. I ran this query to test:
and verified all of my |
Beta Was this translation helpful? Give feedback.
-
In Discord, @raddevon helped me realize I needed to re-run the query builder. deno run -A --unstable https://deno.land/x/edgedb@v1.0.1/generate.ts edgeql-js --instance myInstance --database myDatabase |
Beta Was this translation helpful? Give feedback.
In Discord, @raddevon helped me realize I needed to re-run the query builder.