1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 15:02:07 +02:00
tldr/pages/common/cradle-sql.md
2019-06-09 18:53:49 +02:00

28 lines
579 B
Markdown

# cradle sql
> Manage Cradle SQL databases.
> More information: <https://cradlephp.github.io/docs/3.B.-Reference-Command-Line-Tools.html#sql>.
- Rebuild the database schema:
`cradle sql build`
- Rebuild the database schema for a specific package:
`cradle sql build {{package_name}}`
- Empty the entire database:
`cradle sql flush`
- Empty the database tables for a specific package:
`cradle sql flush {{package_name}}`
- Populate the tables for all packages:
`cradle sql populate`
- Populate the tables for a specific package:
`cradle sql populate {{package_name}}`