Skip to content

FeatBit 5.2.0 MongoDB → PostgreSQL Migrator

Choose a tag to compare

@deleteLater deleteLater released this 18 Oct 08:34
· 2 commits to main since this release

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

  1. Ensure the source FeatBit deployment is upgraded to v5.2.0.
  2. Initialize the target PostgreSQL database using init-pg.sql, then connect to the featbit database for table creation.
  3. Install dependencies with npm install and configure .env using .env.example.
  4. Run node index.js to export MongoDB data to CSV, excluding IDs already present in PostgreSQL.
  5. Run node get-scripts.js, review scripts-to-run.sql, and execute its \copy commands using psql.

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.