Skip to content

Proposal: Automated MongoDB Migration Script from v1.19.2 to v2.0.0 upgrade #1535

@re-vlad

Description

@re-vlad

Is your feature request related to a problem? Please describe.
GitProxy v2.0.0 has breaking schema changes from v1.19.2 that require data migration, but no built-in migration script exists. Critical changes include:
- Repository URLs must change from https://github.com/org/repohttps://github.com/org/repo.git
- User permissions (canPush, canAuthorise) now require email addresses instead of usernames
- New fields (gitHost, owner, displayName) need to be added to existing documents

Describe the solution you'd like
To add a dedicated MongoDB migration script that:
1. Takes a database backup first;
2. Converts repository URLs to new format;
3. Adds missing fields with default values;
4. (Optional) Provides a CSV import option for username→email mapping

Describe alternatives you've considered
Manual database updates are error-prone and not recommended for production. Without a migration script, users will face data inconsistency issues when upgrading.

Additional context
no additional context

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions