Skip to content

Commit

Permalink
feat: add migration file
Browse files Browse the repository at this point in the history
  • Loading branch information
doouding committed Apr 24, 2024
1 parent c322859 commit 330c881
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { PrismaClient } from '@prisma/client';

import { refreshPrompts } from './utils/prompts';

export class UpdatePrompt1713864641056 {
// do the migration
static async up(db: PrismaClient) {
await refreshPrompts(db);
}

// revert the migration
static async down(_db: PrismaClient) {}
}

0 comments on commit 330c881

Please sign in to comment.