2018-11-06 10:01:29 +00:00
|
|
|
# cradle sql
|
|
|
|
|
|
|
|
> Manage Cradle SQL databases.
|
|
|
|
|
|
|
|
- Rebuild the database schema:
|
|
|
|
|
|
|
|
`cradle sql build`
|
|
|
|
|
|
|
|
- Rebuild the database schema for a specific package:
|
|
|
|
|
2018-11-13 12:15:23 +00:00
|
|
|
`cradle sql build {{package_name}}`
|
2018-11-06 10:01:29 +00:00
|
|
|
|
2018-11-13 17:53:16 +00:00
|
|
|
- Empty the entire database:
|
2018-11-06 10:01:29 +00:00
|
|
|
|
|
|
|
`cradle sql flush`
|
|
|
|
|
2018-11-13 17:53:16 +00:00
|
|
|
- Empty the database tables for a specific package:
|
2018-11-06 10:01:29 +00:00
|
|
|
|
2018-11-13 12:15:23 +00:00
|
|
|
`cradle sql flush {{package_name}}`
|
2018-11-06 10:01:29 +00:00
|
|
|
|
|
|
|
- Populate the tables for all packages:
|
|
|
|
|
|
|
|
`cradle sql populate`
|
|
|
|
|
|
|
|
- Populate the tables for a specific package:
|
|
|
|
|
2018-11-13 12:15:23 +00:00
|
|
|
`cradle sql populate {{package_name}}`
|