Upgrade to Go 1.19 (#2347)
This commit is contained in:
1 parent
07a4082aa1
commit
aef9073fa6
77 files changed
+334
-294
No files matched your search
@@ -58,22 +58,22 @@ func (e Editions) Sort() {
|
||||
// lower number indicates a higher priority. New will panic if the structure
|
||||
// of the embed.FS is not correct. The files must be structured as follows:
|
||||
//
|
||||
// <majorVersion>/
|
||||
// <minorVersion>_<description>.up.sql
|
||||
// <majorVersion>/
|
||||
// <minorVersion>_<description>.up.sql
|
||||
//
|
||||
// Where majorVersion and minorVersion are integers. There can be any number of
|
||||
// leading directories prior to the major versions. For example a directory
|
||||
// structure like the following is correct:
|
||||
//
|
||||
// migrations/oss/postgres/
|
||||
// 0/
|
||||
// 01_initial.up.sql
|
||||
// 1/
|
||||
// 01_add_columns.up.sql
|
||||
// 02_rename_table.up.sql
|
||||
// 2/
|
||||
// 01_add_new_table.up.sql
|
||||
// 02_refactor_views.up.sql
|
||||
// migrations/oss/postgres/
|
||||
// 0/
|
||||
// 01_initial.up.sql
|
||||
// 1/
|
||||
// 01_add_columns.up.sql
|
||||
// 02_rename_table.up.sql
|
||||
// 2/
|
||||
// 01_add_new_table.up.sql
|
||||
// 02_refactor_views.up.sql
|
||||
func New(name string, dialect Dialect, m embed.FS, priority int, opt ...Option) (Edition, error) {
|
||||
var largestSchemaVersion int
|
||||
migrations := make(migration.Migrations)
|
||||
|
||||
@@ -451,7 +451,7 @@ func (p *Postgres) EnsureMigrationLogTable(ctx context.Context) error {
|
||||
|
||||
// GetMigrationLog will retrieve the migration logs from the db for the last
|
||||
// migration.
|
||||
// The WithDeleteLog option is supported and will remove all log entries,
|
||||
// The WithDeleteLog option is supported and will remove all log entries,
|
||||
// after reading the entries, when provided.
|
||||
func (p *Postgres) GetMigrationLog(ctx context.Context, opt ...log.Option) ([]*log.Entry, error) {
|
||||
const op = "postgres.(Postgres).GetMigrationLog"
|
||||
|
||||
Reference in new issue
Block a user