1
1
# Database Management
2
2
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 )
10
11
11
12
## Basic operations
12
13
### Initialize
@@ -43,9 +44,9 @@ against your db so it has all the required tables. `make init` does this, but if
43
44
needing to work with the migrations directly, some common commands:
44
45
45
46
``` 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
49
50
```
50
51
51
52
## Creating new migrations
@@ -54,7 +55,7 @@ If you've changed a python object model, auto-generate a migration file for the
54
55
55
56
``` sh
56
57
$ make db-migrate-create MIGRATE_MSG=" <brief description of change>"
57
- $ make db-upgrade
58
+ $ make db-migrate
58
59
```
59
60
60
61
<details >
0 commit comments