You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm putting together a "personal learning" application with Leptos/Axum and since the objective is mostly to go and learn along the way I decided to use Butane instead of Sqlx.
For some reasons (and I'm not sure why, when or how) I found my SQLite db full of strange table names and, checking the migration folder, sure enough they were all there.
I can't really understand how names like WebPushDatintellijRulezz.table got created, since I never ever used any IntelliJ software on this computer (and in general).
I "solved" it by deleting the db, the .butane folder and then going again through build/makemigrations/init/migrate and now it works properly, but... I'm curious 😅
Attaching a zip file with the funny migration files since there's nothing important in them: funny_migrations.zip
The text was updated successfully, but these errors were encountered:
My guess is you have an IDE plugin/extension that is doing something behind the scenes, combined with rust-analyzer, that is triggering the #[model] macro which creates the .table files.
#216 is one of the issues open about how to clear out .table files that do not match the names of models according to the current source code.
I'm using neovim/LazyVim, that in turn uses rustacean.nvim 🤔🤔🤔
No IntelliJ anywhere in the system, not even Android Studio 😅
Unfortunately I created the migrations before realizing that passing a pool in the proper way in Axum isn't exactly straightforward if you never did it before, so the migration files stayed there for maybe a week...
Anyway, the nice thing about having automatic migrations is that's very quick and easy to re-create them :-)
Closing for now, I'll try to pay more attention next time I add tables or create a new application
Hello!
I'm putting together a "personal learning" application with Leptos/Axum and since the objective is mostly to go and learn along the way I decided to use Butane instead of Sqlx.
For some reasons (and I'm not sure why, when or how) I found my SQLite db full of strange table names and, checking the migration folder, sure enough they were all there.
I can't really understand how names like
WebPushDatintellijRulezz.table
got created, since I never ever used any IntelliJ software on this computer (and in general).I "solved" it by deleting the db, the
.butane
folder and then going again through build/makemigrations/init/migrate and now it works properly, but... I'm curious 😅Attaching a zip file with the funny migration files since there's nothing important in them: funny_migrations.zip
The text was updated successfully, but these errors were encountered: