Generate new migration files with sqlx migrate add and apply them to your database using sqlx migrate run.
You generate migrations by running sqlx migrate add <name> and apply them with sqlx migrate run.
sqlx migrate add create_users_table
sqlx migrate run
The add command creates a new SQL file in the migrations directory, and run executes all pending migrations against your database.
Migrations are scripts that update your database structure over time. You write a script to add a new table or column, and the tool runs it to keep your database in sync with your code. Think of it like a version history for your database layout.