From 3802b0ad2d14a64af82b0e3315e6ac11c574169a Mon Sep 17 00:00:00 2001 From: Juozas Vainauskas <71255955+JuozasVainauskas@users.noreply.github.com> Date: Wed, 28 Aug 2024 01:21:56 +0300 Subject: [PATCH] mysql: do not use SERIAL alias in goose_db_version table creation (#816) --- internal/dialect/dialectquery/mysql.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/dialect/dialectquery/mysql.go b/internal/dialect/dialectquery/mysql.go index b14ef392b..1ce165cef 100644 --- a/internal/dialect/dialectquery/mysql.go +++ b/internal/dialect/dialectquery/mysql.go @@ -8,7 +8,7 @@ var _ Querier = (*Mysql)(nil) func (m *Mysql) CreateTable(tableName string) string { q := `CREATE TABLE %s ( - id serial NOT NULL, + id bigint(20) unsigned NOT NULL AUTO_INCREMENT, version_id bigint NOT NULL, is_applied boolean NOT NULL, tstamp timestamp NULL default now(),