From 465115c28e20d837922b7b64b8f8671cc609bdeb Mon Sep 17 00:00:00 2001 From: Filip Date: Sat, 17 Sep 2016 21:54:00 +0200 Subject: [PATCH] Fix incorrect generation of postgres table id type --- g_migration.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/g_migration.go b/g_migration.go index c0485ef..ed3dfc4 100644 --- a/g_migration.go +++ b/g_migration.go @@ -129,7 +129,7 @@ func (m postgresqlDriver) generateSQLFromFields(fields string) string { return "" } if i == 0 && strings.ToLower(kv[0]) != "id" { - sql += "id interger serial primary key," + sql += "id serial primary key," } sql += snakeString(kv[0]) + " " + typ + "," if tag != "" {