ts-migrate-mongoose
Version:
A migration framework for Mongoose, built with TypeScript.
15 lines (12 loc) • 348 B
text/typescript
/**
* Template used to create a new migration file
*/
export const template = `// Import your schemas here
import type { Connection } from 'mongoose'
export async function up (connection: Connection): Promise<void> {
// Write migration here
}
export async function down (connection: Connection): Promise<void> {
// Write migration here
}
`