Repository navigation
Allow overriding the internal payload-migrations collection config #16461
Replies: 2 comments 1 reply
|
This seems like a reasonable consistency improvement, especially since Operational/internal collections often end up needing environment-specific admin behavior in real-world deployments:
So having An opt-in override model also feels like the right balance because it preserves the existing zero-config behavior while still allowing advanced customization where needed. Something lightweight like: migrations: {
admin: {
hidden: false,
group: 'System',
defaultColumns: ['name', 'batch', 'createdAt'],
},
access: {
read: isAdmin,
},
}would probably already cover most operational use cases. The important part would be clearly defining which parts are safe to override vs which internals are considered framework-owned and immutable. For example:
Keeping the override surface intentionally scoped would help avoid accidental breakage of migration system guarantees. I also think this becomes more valuable as Payload adoption grows inside larger organizations where:
Overall this feels less like “customization for customization’s sake” and more like improving operational flexibility while maintaining sensible defaults. |
|
Related: #19204 reports that |
Uh oh!
There was an error while loading. Please reload this page.
payload-migrationsis an internal collection, but unlikepayload-jobs, its collection config cannot be customized.An opt-in override would let projects adjust admin visibility, grouping, columns, labels, and access rules for operational use cases, while keeping the default behavior unchanged.
All reactions