Repository navigation
FeatBit 5.2.0 MongoDB → PostgreSQL Migrator
MongoDB → PostgreSQL migration utility for FeatBit v5.2.0.
This release establishes the existing migrator as the v5.2.0 baseline and aligns the package version with the supported FeatBit version. It does not change migration behavior.
Usage
- Ensure the source FeatBit deployment is upgraded to v5.2.0.
- Initialize the target PostgreSQL database using
init-pg.sql, then connect to thefeatbitdatabase for table creation. - Install dependencies with
npm installand configure.envusing.env.example. - Run
node index.jsto export MongoDB data to CSV, excluding IDs already present in PostgreSQL. - Run
node get-scripts.js, reviewscripts-to-run.sql, and execute its\copycommands usingpsql.
Scope and limitations
- EndUsers and Events are not migrated. Plan their migration separately if required.
- Existing PostgreSQL records are skipped by ID; they are not updated or synchronized.
- This release does not add support for FeatBit v5.4.10.
- Test against an empty PostgreSQL database and review generated SQL before production use. No live database migration was performed as part of this release.