mysql: do not use SERIAL alias in goose_db_version table creation (#816)

pull/694/head
Juozas Vainauskas 2024-08-28 01:21:56 +03:00 committed by GitHub
parent 0ad04fe43a
commit 3802b0ad2d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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(),