Skip to main content
v0.6 moves the database backends into the core openworkflow package. This simplifies installation, reduces dependency management, and makes imports cleaner. Here’s everything you need to know to upgrade.

Step-by-Step Migration

1. Update Your Imports

Find and replace the old import paths:
// openworkflow.config.ts
- import { BackendPostgres } from "@openworkflow/backend-postgres";
+ import { BackendPostgres } from "openworkflow/postgres";

// openworkflow/client.ts
- import { BackendSqlite } from "@openworkflow/backend-sqlite";
+ import { BackendSqlite } from "openworkflow/sqlite";

2. Update Your Dependencies

Remove the legacy packages:
npm uninstall @openworkflow/backend-postgres @openworkflow/backend-sqlite
If you’re using PostgreSQL, install the postgres driver directly:
npm install postgres
Your package.json should now look like:
{
  "dependencies": {
    "openworkflow": "^0.6.0",
    "postgres": "^3.4.8" // Only if using PostgreSQL
  }
}

3. That’s It

No other changes needed. The backend API is identical.

Verify the Upgrade

Run the doctor command after upgrading:
npx @openworkflow/cli doctor
You should see Configuration looks good!.

New Projects

If you’re starting fresh, just run:
npx @openworkflow/cli init
The CLI now generates code with the new import paths automatically.

Need Help?

If you run into issues: