mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-05-31 23:00:48 +00:00
Dependent device DB migrations
This commit is contained in:
parent
786874dbb6
commit
d4e3e45e52
@ -81,6 +81,8 @@ knex.init = Promise.all([
|
||||
t.string('imageId')
|
||||
t.json('config')
|
||||
t.json('environment')
|
||||
else
|
||||
addColumn('dependentApp', 'environment', 'json')
|
||||
|
||||
knex.schema.hasTable('dependentDevice')
|
||||
.then (exists) ->
|
||||
@ -107,7 +109,12 @@ knex.init = Promise.all([
|
||||
t.json('targetConfig')
|
||||
t.boolean('markedForDeletion')
|
||||
else
|
||||
addColumn('dependentDevice', 'markedForDeletion', 'boolean')
|
||||
Promise.all [
|
||||
addColumn('dependentDevice', 'markedForDeletion', 'boolean')
|
||||
addColumn('dependentDevice', 'localId', 'string')
|
||||
addColumn('dependentDevice', 'is_managed_by', 'string')
|
||||
addColumn('dependentDevice', 'lock_expiry_date', 'dateTime')
|
||||
]
|
||||
])
|
||||
|
||||
module.exports = knex
|
||||
|
Loading…
x
Reference in New Issue
Block a user