Skip to content

Migrations that begin with the year 2024 fail during the 'up' migration process #1024

Open
@alazarbeyenenew2

Description

@alazarbeyenenew2

Describe the Bug
Migrations that begin with the year 2024 fail during the 'up' migration process.

Steps to Reproduce

  1. run migration create
    migrate create -ext sql -dir internal/constant/query/schemas -tz "UTC"_sql_name
  2. run migrate up
    3

Expected Behavior

`User
panic: suint(-2077783112) expects input >= 0

goroutine 54 [running]:
github.com/golang-migrate/migrate/v4.suint(...)
github.com/golang-migrate/migrate/v4/util.go:45
github.com/golang-migrate/migrate/v4.(*Migrate).readUp(0xd1e9d40, 0xffffffff, 0xffffffff, 0xd294340)
github.com/golang-migrate/migrate/v4/migrate.go:582 +0x6be
created by github.com/golang-migrate/migrate/v4.(*Migrate).Up in goroutine 1
github.com/golang-migrate/migrate/v4/migrate.go:283 +0xea
make: [Makefile:4: migrate-up] Error 2 (ignored)`

Migrate Version
e.g. v3.4.15, v3.4.17

Loaded Source Drivers
e.g. s3, github, go-bindata, gcs, file
Obtained by running: migrate -help

Loaded Database Drivers
e.g. postgresql

Stacktrace

`User
panic: suint(-2077783112) expects input >= 0

goroutine 54 [running]:
github.com/golang-migrate/migrate/v4.suint(...)
github.com/golang-migrate/migrate/v4/util.go:45
github.com/golang-migrate/migrate/v4.(*Migrate).readUp(0xd1e9d40, 0xffffffff, 0xffffffff, 0xd294340)
github.com/golang-migrate/migrate/v4/migrate.go:582 +0x6be
created by github.com/golang-migrate/migrate/v4.(*Migrate).Up in goroutine 1
github.com/golang-migrate/migrate/v4/migrate.go:283 +0xea
make: [Makefile:4: migrate-up] Error 2 (ignored)`

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicateThis issue or pull request already exists

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions