Table config should have key as primary key

This commit is contained in:
Petros Aggelatos 2013-12-18 00:42:51 +00:00 committed by Pablo Carranza Vélez
parent c98a274bde
commit ef970712a8

View File

@ -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')
)
)