Skip to content

Commit

Permalink
docs: improve wording around CreateVersionTable
Browse files Browse the repository at this point in the history
  • Loading branch information
mfridman committed Aug 31, 2024
1 parent eb5641e commit 31799a9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions database/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ type Store interface {
// Tablename is the name of the version table. This table is used to record applied migrations
// and must not be an empty string.
Tablename() string
// CreateVersionTable creates the version table, which is used to track migrations. When
// creating this table, the implementation MUST also insert a row for the initial version (0).
// CreateVersionTable creates the version table, which is used to track migrations.
CreateVersionTable(ctx context.Context, db DBTxConn) error
// Insert a version id into the version table.
Insert(ctx context.Context, db DBTxConn, req InsertRequest) error
Expand Down

0 comments on commit 31799a9

Please sign in to comment.