From c8e2d84568fa7cf375f0bdf6be96b4b9e8c140b5 Mon Sep 17 00:00:00 2001 From: Natsu Kagami Date: Sat, 29 Mar 2025 16:54:02 +0100 Subject: [PATCH] Update README for sqlx related commands --- README.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 356a591..f81884b 100644 --- a/README.md +++ b/README.md @@ -19,9 +19,16 @@ All PRs welcome. ### Regenerate compiler information -From within `./youmubot-db-sql` run +The commands expect the cwd to be at the project base directory. + +Manually run migrations with +``` +sqlx migrate run --database-url "sqlite:./youmubot.db" --source ./youmubot-db-sql/migrations +``` + +Update compiler information with ```bash -cargo sqlx prepare --database-url "sqlite:$(realpath ..)/youmubot.db" +cargo sqlx prepare --database-url "sqlite:./youmubot.db" --workspace ``` ## License