From 272da00426e24cb121ec74299699e1db77dd7183 Mon Sep 17 00:00:00 2001 From: Barak Amar Date: Tue, 24 Nov 2020 11:54:40 +0200 Subject: [PATCH] code comment --- db/migration.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/db/migration.go b/db/migration.go index b06c4553819..ac57c3ac1db 100644 --- a/db/migration.go +++ b/db/migration.go @@ -176,10 +176,10 @@ func MigrateTo(p params.Database, version uint, force bool) error { } func MigrateVersion(params params.Database) (uint, bool, error) { - // getting + // validate that default migrations table exists with information - a workaround + // so we will not create the migration table as the package will ensure the table exists dbPool := BuildDatabaseConnection(params) defer dbPool.Close() - var rows int err := dbPool.Get(&rows, `SELECT COUNT(*) FROM `+postgres.DefaultMigrationsTable) if err != nil || rows == 0 {