boulder/core
Jeff Hodges 7b6f2894f7 add goose as the migration tool
This has required some substantive changes to the tests. Where
previously the foreign key constraints did not exist in the tests, now
that we use the actual production schema, they do. This has mostly led
to having to create real Registrations in the sa, ca, and ra tests. Long
term, it would be nice to fake this out better instead of needing a real
sa in the ca and ra tests.

The "goose" being referred to is <https://bitbucket.org/liamstask/goose>.

Database migrations are stored in a _db directory inside the relevant
owner service (namely, ca/_db, and sa/_db, today).

An example of migrating up with goose:

    goose -path ./sa/_db -env test up

An example of creating a new migration with goose:

    goose -path ./sa/_db -env test create NameOfNewMigration sql

Notice the "sql" at the end. It would be easier for us to manage sql
migrations. I would like us to stick to only them. In case we do use Go
migrations in the future, the underscore at the beginning of "_db" will
at least prevent build errors when using "..." with goose-created Go
files. Goose-created Go migrations do not compile with the go tool but
only with goose.

Fixes #111
Unblocks #623
2015-08-25 12:02:31 -07:00
..
challenges.go Fixing more merge issues 2015-08-10 12:19:04 -07:00
core_test.go use pointer to AcmeURL everywhere 2015-08-05 18:23:38 -07:00
dns.go Merge branch 'master' into fixed-505 2015-08-13 22:50:13 -07:00
dns_test.go Merge branch 'master' into fixed-505 2015-08-13 22:50:13 -07:00
good_key.go Allowed for more detailed error messages: 2015-06-19 12:51:09 -07:00
good_key_test.go Correct most `go lint` warnings. (274 -> 5) 2015-06-16 22:18:28 -05:00
interfaces.go add goose as the migration tool 2015-08-25 12:02:31 -07:00
nonce.go Add nonce error propagation to nonce.go 2015-06-23 12:14:23 -07:00
nonce_test.go Add nonce error propagation to nonce.go 2015-06-23 12:14:23 -07:00
objects.go Merge branch 'master' into fixed-505 2015-08-21 14:12:36 -07:00
objects_test.go Review rework 2015-08-13 22:49:33 -07:00
util.go use pointer to AcmeURL everywhere 2015-08-05 18:23:38 -07:00
util_test.go update tests after jwk encoding fix. 2015-07-28 16:25:30 +02:00