bun install @zemble/migrations
bunx create-migration <name> [template]
The migration should export an up and optionally a down function
import { createApp } from '@zemble/app';
import Migrations from '@zemble/migrations';
import MongoAdapter from '@zemble/mongodb/helpers/migration-adapter';
const app = createApp({
plugins: [
Migrations.configure({
createAdapter: () => new MongoAdapter(mongoUrl),
})
],
});
The provider could be for any type of database, mongodb is just an example.