mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-10 15:43:09 -06:00
Update comment
This commit is contained in:
parent
2b9cb3323c
commit
9ad1375400
|
|
@ -142,7 +142,8 @@ func (m *Migrator) ExecutedMigrations(ctx context.Context) (map[string]struct{},
|
||||||
return result, rows.Err()
|
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.
|
// This should only be used when manually inserting migrations.
|
||||||
func InsertMigration(ctx context.Context, db *sql.DB, migrationName string) error {
|
func InsertMigration(ctx context.Context, db *sql.DB, migrationName string) error {
|
||||||
_, err := db.ExecContext(ctx, createDBMigrationsSQL)
|
_, err := db.ExecContext(ctx, createDBMigrationsSQL)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue