mirror of https://github.com/pressly/goose.git
docs: improve wording around CreateVersionTable
parent
eb5641ec06
commit
31799a95f7
|
@ -27,8 +27,7 @@ type Store interface {
|
||||||
// Tablename is the name of the version table. This table is used to record applied migrations
|
// Tablename is the name of the version table. This table is used to record applied migrations
|
||||||
// and must not be an empty string.
|
// and must not be an empty string.
|
||||||
Tablename() string
|
Tablename() string
|
||||||
// CreateVersionTable creates the version table, which is used to track migrations. When
|
// CreateVersionTable creates the version table, which is used to track migrations.
|
||||||
// creating this table, the implementation MUST also insert a row for the initial version (0).
|
|
||||||
CreateVersionTable(ctx context.Context, db DBTxConn) error
|
CreateVersionTable(ctx context.Context, db DBTxConn) error
|
||||||
// Insert a version id into the version table.
|
// Insert a version id into the version table.
|
||||||
Insert(ctx context.Context, db DBTxConn, req InsertRequest) error
|
Insert(ctx context.Context, db DBTxConn, req InsertRequest) error
|
||||||
|
|
Loading…
Reference in New Issue