-
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
Bug: The table X already exists #92
Comments
Due to breaking changes in surrealdb v2, you need to use the new Here is a link that explain this new keywork: https://surrealdb.com/docs/surrealql/statements/define/table#using-overwrite-clause |
@Odonno Thanks, this solved that, but can you explain in more detail why this is necessary? I looked through the docs but not totally clear. |
Well, the change was made to avoid accidental change in the schema, using the extra keyword when you are sure about what you are doing. |
@Odonno so that means that I have to add in any kind of schema files As I understood how What happens if I use |
You are correct, this is exactly how I would also not recommend the use of In any case, I would prefer to use |
Describe the bug
I had an old version of Surrealdb
< 2.0.0
. I have updated to2.0.1
by dropping the old rocksdb and migrating to surrealkv. I have run the github action as always. At first run everything worked well, after that I have inserted my data using surrealql in the surrealist app. After that when I want to deploy my app using github action which also includes the surrealdb-migrations github action I always get the following error:Expected behavior
When I start a deploy the migration should run without any error message.
Information
My surrealdb-migrations related files:
2@latest
The text was updated successfully, but these errors were encountered: