Update comment

This commit is contained in:
Till Faelligen 2022-08-23 09:27:03 +02:00
parent 2b9cb3323c
commit 9ad1375400
No known key found for this signature in database
GPG key ID: 3DF82D8AB9211D4E

View file

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