mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-02-21 02:01:35 +00:00
Merge pull request #403 from resin-io/402-ensure-no-null-app-configs
Issue #402: Ensure that app configs are non-null and valid json objects
This commit is contained in:
commit
68ac688609
@ -52,6 +52,9 @@ knex.init = Promise.all([
|
||||
addColumn('app', 'appId', 'string')
|
||||
addColumn('app', 'config', 'json')
|
||||
]
|
||||
.then ->
|
||||
# When updating from older supervisors, config can be null
|
||||
knex('app').update({ config: '{}' }).whereNull('config')
|
||||
|
||||
knex.schema.hasTable('image')
|
||||
.then (exists) ->
|
||||
|
Loading…
x
Reference in New Issue
Block a user