11# Database Management
22
3- - [ Basic operations] ( #basic-operations )
4- - [ Initialize] ( #initialize )
5- - [ Start] ( #start )
6- - [ Destroy and reinitialize] ( #destroy-and-reinitialize )
7- - [ Running migrations] ( #running-migrations )
8- - [ Creating new migrations] ( #creating-new-migrations )
9- - [ Multi-head situations] ( #multi-head-situations )
3+ - [ Database Management] ( #database-management )
4+ - [ Basic operations] ( #basic-operations )
5+ - [ Initialize] ( #initialize )
6+ - [ Start] ( #start )
7+ - [ Destroy and reinitialize] ( #destroy-and-reinitialize )
8+ - [ Running migrations] ( #running-migrations )
9+ - [ Creating new migrations] ( #creating-new-migrations )
10+ - [ Multi-head situations] ( #multi-head-situations )
1011
1112## Basic operations
1213### Initialize
@@ -43,9 +44,9 @@ against your db so it has all the required tables. `make init` does this, but if
4344needing to work with the migrations directly, some common commands:
4445
4546``` sh
46- make db-upgrade # Apply pending migrations to db
47- make db-downgrade # Rollback last migration to db
48- make db-downgrade -all # Rollback all migrations
47+ make db-migrate # Apply pending migrations to db
48+ make db-migrate-down # Rollback last migration to db
49+ make db-migrate-down -all # Rollback all migrations
4950```
5051
5152## Creating new migrations
@@ -54,7 +55,7 @@ If you've changed a python object model, auto-generate a migration file for the
5455
5556``` sh
5657$ make db-migrate-create MIGRATE_MSG=" <brief description of change>"
57- $ make db-upgrade
58+ $ make db-migrate
5859```
5960
6061<details >
0 commit comments