Skip to content

Files

Latest commit

 

History

History

api

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Adding a new migration

Run the following command from this folder:

sqlx migrate add <migration-name>

Running migrations on the local database

Run the following command from this folder:

sqlx migrate run

Reset the database to its initial state

Run the following command from this folder:

sqlx migrate reset

Update sqlx metadata

Run the following command from this folder:

cargo sqlx prepare