mirror of https://github.com/pressly/goose.git
mysql: do not use SERIAL alias in goose_db_version table creation (#816)
parent
0ad04fe43a
commit
3802b0ad2d
|
@ -8,7 +8,7 @@ var _ Querier = (*Mysql)(nil)
|
||||||
|
|
||||||
func (m *Mysql) CreateTable(tableName string) string {
|
func (m *Mysql) CreateTable(tableName string) string {
|
||||||
q := `CREATE TABLE %s (
|
q := `CREATE TABLE %s (
|
||||||
id serial NOT NULL,
|
id bigint(20) unsigned NOT NULL AUTO_INCREMENT,
|
||||||
version_id bigint NOT NULL,
|
version_id bigint NOT NULL,
|
||||||
is_applied boolean NOT NULL,
|
is_applied boolean NOT NULL,
|
||||||
tstamp timestamp NULL default now(),
|
tstamp timestamp NULL default now(),
|
||||||
|
|
Loading…
Reference in New Issue