mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-21 22:47:49 +00:00
Table config should have key
as primary key
This commit is contained in:
parent
c98a274bde
commit
ef970712a8
@ -9,8 +9,7 @@ knex = Knex.initialize(
|
||||
knex.schema.hasTable('config').then((exists) ->
|
||||
if not exists
|
||||
knex.schema.createTable('config', (t) ->
|
||||
t.increments('id').primary()
|
||||
t.string('key')
|
||||
t.string('key').primary()
|
||||
t.string('value')
|
||||
)
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user