mirror of
https://github.com/chef-boneyard/chef-server-schema.git
synced 2026-12-06 05:41:04 +01:00
SQL Schema for the Open Source Chef Server
- PLpgSQL 98.1%
- Makefile 1.9%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
|
||
| deploy | ||
| doc | ||
| revert | ||
| t | ||
| verify | ||
| .gitattributes | ||
| LICENSE | ||
| Makefile | ||
| README.md | ||
| sqitch.conf | ||
| sqitch.plan | ||
DEPRECATED: Chef Server PostgreSQL Schema
WARNING: Schema changes for Chef 12+ should happen in oc_erchef. NOT HERE. YOU PROBABLY DON'T WANT TO BE HERE.
Modifying the Schema
The schema for the Chef Server is managed using sqitch, a database-agnostic tool for managing schema changes using plain old SQL.
Adding Tests
We use pgTAP to test both the schema and the stored procedures in the database.
Bringing It All Together
You've got schema patches and tests; how do you bring it all together and verify everything works?
make
This will create a new database, load all sqitch changesets, install the testing framework and test functions, and finally run the tests.
If you want to do any of those steps individually, there are make
targets for each of them; consult the Makefile