2018-11-06 10:01:29 +00:00
|
|
|
# cradle sql
|
|
|
|
|
|
|
|
> Manage Cradle SQL databases.
|
2019-06-09 00:05:30 +01:00
|
|
|
> More information: <https://cradlephp.github.io/docs/3.B.-Reference-Command-Line-Tools.html#sql>.
|
2018-11-06 10:01:29 +00:00
|
|
|
|
|
|
|
- Rebuild the database schema:
|
|
|
|
|
|
|
|
`cradle sql build`
|
|
|
|
|
|
|
|
- Rebuild the database schema for a specific package:
|
|
|
|
|
2023-08-26 18:30:06 +01:00
|
|
|
`cradle sql build {{package}}`
|
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
|
|
|
|
2023-08-26 18:30:06 +01:00
|
|
|
`cradle sql flush {{package}}`
|
2018-11-06 10:01:29 +00:00
|
|
|
|
|
|
|
- Populate the tables for all packages:
|
|
|
|
|
|
|
|
`cradle sql populate`
|
|
|
|
|
|
|
|
- Populate the tables for a specific package:
|
|
|
|
|
2023-08-26 18:30:06 +01:00
|
|
|
`cradle sql populate {{package}}`
|