Skip to content

Remove migration name from inside the JSON and rely on filename as source of truth. #715

@richardgill

Description

@richardgill

Currently we have both the file name e.g. 20250101123456.json and also:

"name": "20250101123456",

Inside the JSON.

When trying to use pgroll I've found that keeping them in sync is a little annoying and I'd rather "name" wasn't present at all.

Example:

pgroll convert ....

Returns JSON including the name and I now need to read the name to write the file, or modify the JSON if I want a different name.

Example:

I create a pgroll migration by hand, I accidentally mismatched the file name and the migration name.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions