Skip to content

[Bug]: switching legacy AutoMigrate DB to new migration pattern does not work #587

@parkan

Description

@parkan

Description

the "meta-migration" to gomigrate does not work:

2025-10-16T12:34:06.834Z	INFO	database	database/connstring_cgo.go:56	Opening postgres database
2025-10-16T12:34:06.877Z	INFO	model	model/migrate.go:69	Initializing database
2025-10-16T12:34:06.901Z	INFO	model	model/migrate.go:77	Manually creating versioned migration table in existing database
2025-10-16T12:34:06.920Z	ERROR	database	database/util.go:81	SELECT * FROM "migrations" LIMIT 1	{"rowsAffected": -1, "elapsed": 0.000419528, "err": "insufficient arguments"}

Steps to Reproduce

admin init or admin migrate against a legacy db

Version

6.x

Operating System

Linux

Database Backend

PostgreSQL

Additional context

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions