-
Notifications
You must be signed in to change notification settings - Fork 21
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
So... what exactly _is_ it doing? #97
Comments
Hello @IngwiePhoenix It happens because the schema definition is replayable. Meaning it will happen many times and with SurrealDB v2, a simple
You should use |
Good morning! Writing to you from home today :) Is there any particular reason for this behaviour? I'd have thought a schema is static while migrations are the dynamic part? |
Yeah, I suppose it can feel a little disturbing.
That's the main reason why the schema files must be written in a certain and defining everything with I assume and I know myself this isn't the best approach. Note that I have some ideas to improve this tool in the future versions. |
Describe the bug
I honestly wish I could give you one...
And the migration itself?
What. o.o
To Reproduce
Scheme:
And then add the above snippet as migration - and apply.
Expected behavior
I expected my migration to work...
Information
SurrealDB command-line interface and server 2.1.4 for linux on x86_64
surrealdb-migrations 2.1.0
Additional context
I have a few tables (10ish or so) in my
schemas
folder and this is just my second migration. In fact, the first one passes just fine:But the new one... does not. And the error message is super confusing...
The text was updated successfully, but these errors were encountered: