tldr/pages/common/cradle-sql.md

29 lines
579 B
Markdown
Raw Permalink Normal View History

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:
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}}`