Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add documentation referencing "Please specify a conversion expression to alter the type of property ...: cast_expr>" #3953

Open
vonkoff opened this issue Jun 9, 2022 · 2 comments
Assignees

Comments

@vonkoff
Copy link

vonkoff commented Jun 9, 2022

I'd recommend putting some more information about handling migrations. Specifically when the prompt Please specify a conversion expression to alter the type of property ...: cast_expr> . It took me a while to get what this meant and how to handle it. There are sparse amounts of times it's mentioned in GitHub or discord. I didn't really find anything in the EdgeDB documentation regarding this until I did a google search and found it mentioned in the changelog here https://www.edgedb.com/docs/changelog/1_0_b1

I could see a newbie, such as myself, not being able to comprehend what they need to do and start from scratch with a new project init instead of going through with a migration.

Also, it'd be a big plus to see an example snippet being explained in the "Easy EdgeDB Book".

@riolly
Copy link

riolly commented Jul 12, 2022

Yes, please. I am the example.
I try to migrate property from an array of strings
property important_places -> array<str>;
to a multi-property string.
multi property important_places -> str;
and need to provide the cast expression.

I'm newbie and still confuse to do it correctly.

But anyway the docs are still really awesome!

@riolly
Copy link

riolly commented Jul 13, 2022

And also fill_expr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants