You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Versions of migrations may be represented as any 64 bit unsigned integer.
When running migrate on an empty database, it creates table migrations.
On YugabyteDB, the column version defaults to int4 when it should be int8 (or just bigint).
This causes the following error when running migrate:
error: pq: value "20240918085430" is out of range for type integer
This can be fixed with
ALTER TABLE public.migrations ALTER COLUMN "version" TYPE bigint USING "version"::bigint;
Steps to Reproduce
Expected Behavior
Migrate Version
4.18.1
Loaded Source Drivers
Loaded Database Drivers
yugabytedb
Go Version
Stacktrace
Additional context
The text was updated successfully, but these errors were encountered:
Describe the Bug
In this guide it is stated that
When running
migrate
on an empty database, it creates tablemigrations
.On YugabyteDB, the column
version
defaults toint4
when it should beint8
(or justbigint
).This causes the following error when running
migrate
:This can be fixed with
Steps to Reproduce
Expected Behavior
Migrate Version
4.18.1
Loaded Source Drivers
Loaded Database Drivers
yugabytedb
Go Version
Stacktrace
Additional context
The text was updated successfully, but these errors were encountered: