File tree Expand file tree Collapse file tree 1 file changed +10
-18
lines changed
Expand file tree Collapse file tree 1 file changed +10
-18
lines changed Original file line number Diff line number Diff line change @@ -88,30 +88,22 @@ wheels g test model User
8888wheels g helper StringUtils
8989```
9090
91- ### Database Management
91+ ### Migration Management
9292``` bash
93- # Setup database from scratch
94- wheels db setup
95-
96- # Run migrations
97- wheels dbmigrate latest
98-
9993# Check migration status
100- wheels db status
94+ wheels dbmigrate info
10195
102- # Rollback migrations
103- wheels db rollback --steps=3
96+ # Migration to Latest
97+ wheels dbmigrate latest
10498
105- # Reset database (drop + recreate + migrate)
106- wheels db reset --force
99+ # Migration to version 0
100+ wheels dbmigrate reset
107101
108- # Database shell access
109- wheels db shell # CLI interface
110- wheels db shell --web # H2 web console
102+ # Migration one version UP
103+ wheels dbmigrate up
111104
112- # Backup and restore
113- wheels db dump --output=backup.sql
114- wheels db restore backup.sql
105+ # Migration one version DOWN
106+ wheels dbmigrate down
115107```
116108
117109### Server Management
You can’t perform that action at this time.
0 commit comments