From 0aeebb148365037494c9c364ac32f3d5aee97da2 Mon Sep 17 00:00:00 2001 From: Mike Fridman Date: Tue, 27 Aug 2024 18:47:46 -0400 Subject: [PATCH] use integer instead of bigint --- internal/dialect/dialectquery/postgres.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/dialect/dialectquery/postgres.go b/internal/dialect/dialectquery/postgres.go index 4a4b17163..2def6c6ca 100644 --- a/internal/dialect/dialectquery/postgres.go +++ b/internal/dialect/dialectquery/postgres.go @@ -8,7 +8,7 @@ var _ Querier = (*Postgres)(nil) func (p *Postgres) CreateTable(tableName string) string { q := `CREATE TABLE %s ( - id bigint PRIMARY KEY GENERATED BY DEFAULT AS IDENTITY, + id integer PRIMARY KEY GENERATED BY DEFAULT AS IDENTITY, version_id bigint NOT NULL, is_applied boolean NOT NULL, tstamp timestamp NOT NULL DEFAULT now()