SQL Schema for the Open Source Chef Server
  • PLpgSQL 98.1%
  • Makefile 1.9%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Steven Danna 82698f921e Merge pull request #3 from chef/ssd/warning
Warn the future.
2015-02-27 19:52:10 +00:00
deploy Add index for cookbook_versions(cookbook_id) 2013-10-09 10:43:43 -05:00
doc Actually use the right clone url for chef_pgtap 2014-01-16 14:41:08 -05:00
revert Add index for cookbook_versions(cookbook_id) 2013-10-09 10:43:43 -05:00
t Add index for cookbook_versions(cookbook_id) 2013-10-09 10:43:43 -05:00
verify Add index for cookbook_versions(cookbook_id) 2013-10-09 10:43:43 -05:00
.gitattributes Use the 'union' merge strategy for sqitch.plan 2013-09-17 21:30:56 -04:00
LICENSE Initial commit 2013-09-13 17:34:49 -04:00
Makefile Initial commit 2013-09-13 17:34:49 -04:00
README.md Warn the future. 2015-02-27 19:19:27 +00:00
sqitch.conf Initial commit 2013-09-13 17:34:49 -04:00
sqitch.plan Tag with 1.0.4 for index creation 2013-10-10 13:38:31 -05:00

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