From 15eb2e05cd4a6945678a5c937535a8b381dc6fb2 Mon Sep 17 00:00:00 2001 From: Thomas Date: Wed, 23 Oct 2024 21:56:54 -0500 Subject: [PATCH] update README.md --- readme.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/readme.md b/readme.md index a2d0b5d..6885a81 100644 --- a/readme.md +++ b/readme.md @@ -8,6 +8,30 @@ This repository leverages PostgreSQL as a caching layer to reduce DevHub's RPC c cargo watch -q -c -w src/ -x 'run ' ``` +### SQLx Postgres +--- +[More information](https://github.com/launchbadge/sqlx/tree/main/sqlx-cli) + +### Create and run migrations + +```bash +sqlx migrate add +``` + +Creates a new file in `migrations/-.sql`. Add your database schema changes to +this new file. + +--- + +```bash +sqlx migrate run +``` + +Compares the migration history of the running database against the `migrations/` folder and runs +any scripts that are still pending. + +--- + ## Rust + Rocket + Fly.io ```sh