New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrations that begin with the year 2024 fail during the 'up' migration process #1024
Comments
I have the same problem |
I solved the problem by manually changing the year to 2023 |
|
I'm using a 64-bit system. And the problem started to occur in 2024. |
i am on 64-bit but this is this is started 2024 this is how i identify the problem then try to solve in my way |
y2k never ended |
I'm having the same problem. I believe the quickest solution to this would be to migrate away from timestamps and use the sequential option. However, I see that it is a complex thing to do because in addition to having to change all the migration files, you also have to update the database. Looking at the database I have, the If someone can guide me on how Migrate works with the |
Describe the Bug
Migrations that begin with the year 2024 fail during the 'up' migration process.
Steps to Reproduce
migrate create -ext sql -dir internal/constant/query/schemas -tz "UTC"_sql_name
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)`
The text was updated successfully, but these errors were encountered: