mozilla-services / FindMyDevice

Find My Device - 🚨🚨This server is obsolete and unsupported.🚨🚨
Mozilla Public License 2.0
13 stars 8 forks source link

Features/229 db upgrade #259

Closed crankycoder closed 10 years ago

crankycoder commented 10 years ago

This adds a versioning extension to FindMyDevice so we can track database schema changes.

You should be able to properly track version upgrades, downgrades and will abort if you've merged branches which contain changes to the schema which create multiple heads on the database version.

I've also added a Makefile to run a gospec testsuite against a database named findmydevice_test. I'd like to get those tests merged in with @nchapman's travis tests.

Closes #229

crankycoder commented 10 years ago

@jrconlin r?

I need to check with @nchapman if we can rename the test database in travis from fmd to fmd_test, I want to make sure we don't have a problem were someone accidentally runs the testsuite that I've written and clobbers production by accident.

jrconlin commented 10 years ago

Other than a few noted nits and the travis warning above:

r+