Odonno / surrealdb-migrations

An awesome SurrealDB migration tool, with a user-friendly CLI and a versatile Rust library that enables seamless integration into any project.
https://crates.io/crates/surrealdb-migrations
MIT License
210 stars 16 forks source link

Bug: `READONLY` keyword #72

Closed itsezc closed 6 months ago

itsezc commented 7 months ago

Describe the bug

surrealdb-migrations apply
Error:
   0: Parse error: Failed to parse query at line 19 column 2 expected one of FLEX(IBLE), TYPE, VALUE, ASSERT, DEFAULT, or COMMENT
   0:    |
   0: 19 | READONLY;
   0:    | ^
   0:
   1: Parse error: Failed to parse query at line 19 column 2 expected one of FLEX(IBLE), TYPE, VALUE, ASSERT, DEFAULT, or COMMENT
   1:    |
   1: 19 | READONLY;
   1:    | ^
   1:

To Reproduce Using Surreal's new READONLY feature

Information

Odonno commented 6 months ago

I just published surrealdb-migration v1.2.0. It should work now if you update to this version.