Skip to content

Commit

Permalink
mysql: do not use SERIAL alias in goose_db_version table creation (#816)
Browse files Browse the repository at this point in the history
  • Loading branch information
JuozasVainauskas authored Aug 27, 2024
1 parent 0ad04fe commit 3802b0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/dialect/dialectquery/mysql.go
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit 3802b0a

Please sign in to comment.