Merge branch 'master' into access

Conflicts:
	test/e2e/lib/worker-counter.js
This commit is contained in:
Tomas Bures 2017-05-28 19:35:06 +02:00
commit cda93630ea
25 changed files with 798 additions and 335 deletions

View file

@ -38,7 +38,7 @@ exports.up = function(knex, Promise) {
// For now, we just check whether our DB is up-to-date based on the existing SQL migration infrastructure in Mailtrain.
return knex('settings').where({key: 'db_schema_version'}).first('value')
.then(row => {
if (!row || Number(row.value) !== 28) {
if (!row || Number(row.value) !== 29) {
throw new Error('Unsupported DB schema version: ' + row.value);
}
})