From ef970712a8939ed1b7a0764afee2d105c8e896d5 Mon Sep 17 00:00:00 2001 From: Petros Aggelatos Date: Wed, 18 Dec 2013 00:42:51 +0000 Subject: [PATCH] Table config should have `key` as primary key --- src/db.coffee | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/db.coffee b/src/db.coffee index d87f0b25..cc7f8d1c 100644 --- a/src/db.coffee +++ b/src/db.coffee @@ -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') ) )