From cd297c1b360dc0c7ec9ae4a9d59af43a74bca2ea Mon Sep 17 00:00:00 2001 From: Brandon Thomas Date: Thu, 10 Feb 2022 02:06:40 -0500 Subject: [PATCH] note on linux issue --- .../{development_notes.md => engineering_notes.md} | 0 _docs/local_development_setup.md | 13 +++++++++++++ 2 files changed, 13 insertions(+) rename _docs/{development_notes.md => engineering_notes.md} (100%) diff --git a/_docs/development_notes.md b/_docs/engineering_notes.md similarity index 100% rename from _docs/development_notes.md rename to _docs/engineering_notes.md diff --git a/_docs/local_development_setup.md b/_docs/local_development_setup.md index c895cdf462..57dce2a3cc 100644 --- a/_docs/local_development_setup.md +++ b/_docs/local_development_setup.md @@ -41,6 +41,19 @@ cargo install diesel_cli \ --features mysql ``` +#### Sqlx Error on Linux when Performing Schema Migrations + +You might get this error message during migration, + +``` +Encountered unknown type for Mysql: enum +thread 'main' panicked at 'internal error: entered unreachable code: Mysql only supports a closed set of types. + If you ever see this error message please open an issue at https://github.com/diesel-rs/diesel containing a dump of your schema definition.', diesel_cli/src/print_schema.rs:310:17 +note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace +``` + +I haven't found the cause (it doesn't happen on Mac), but the migrations appear to work regardless of the error message. + #### Linux database notes If MySql in local dev can't be connected to, reset the accounts: