From 9ad13754006be8fc2db9bb9bb64b6dee192880d6 Mon Sep 17 00:00:00 2001 From: Till Faelligen <2353100+S7evinK@users.noreply.github.com> Date: Tue, 23 Aug 2022 09:27:03 +0200 Subject: [PATCH] Update comment --- internal/sqlutil/migrate.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/sqlutil/migrate.go b/internal/sqlutil/migrate.go index b74c8bb9f..98e7d8938 100644 --- a/internal/sqlutil/migrate.go +++ b/internal/sqlutil/migrate.go @@ -142,7 +142,8 @@ func (m *Migrator) ExecutedMigrations(ctx context.Context) (map[string]struct{}, return result, rows.Err() } -// InsertMigration inserts a migration given there name to the database. +// InsertMigration creates the migrations table if it doesn't exist and +// inserts a migration given their name to the database. // This should only be used when manually inserting migrations. func InsertMigration(ctx context.Context, db *sql.DB, migrationName string) error { _, err := db.ExecContext(ctx, createDBMigrationsSQL)