run() — supabase Function Reference
Architecture documentation for the run() function in migrate.ts from the supabase codebase.
Entity Profile
Relationship Graph
Source Code
apps/cms/scripts/migrate.ts lines 6–27
async function run() {
try {
await payload.init({ config: payloadConfig })
// Ensure non-interactive: remove any dev-mode migration sentinel rows
try {
await payload.delete({
collection: 'payload-migrations',
where: { batch: { equals: -1 } },
})
} catch {}
await payload.db.migrate()
// eslint-disable-next-line no-console
console.log('✅ Payload migrations complete')
process.exit(0)
} catch (err) {
// eslint-disable-next-line no-console
console.error('❌ Payload migrations failed:', err)
process.exit(1)
}
}
Domain
Subdomains
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free