ReviewOS

also looking at this

stacks/bun-query-builder

fix(migrate)!: run the directories executeMigration was given

#1138
Merged glennmichael123 wants to merge fix/execute-migration-dirs into main
7 files +348 -49
docs/api/reference.mdmodified+12-2
Changes to docs/api/reference.md
@@ -231,12 +231,22 @@ const migration = await generateMigration('./models', {
231231
232232### executeMigration
233233
234Execute a migration.
234Run every pending migration file in the corpus and record each one.
235235
236236```typescript
237237import { executeMigration } from 'bun-query-builder'
238238
239await executeMigration(migration)
239// The configured `migrationDir`.
240await executeMigration()
241
242// A corpus assembled from several directories — the application's own
243// migrations plus the ones each installed package ships. Files from every
244// directory are ordered together by file name, so names must be unique
245// across the whole run.
246await executeMigration([
247 './database/migrations',
248 './node_modules/loghq/database/migrations',
249])
240250```
241251
242252## Seeders