mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-20 19:46:32 +08:00
test(server): avoid progress get hold after tests finished (#5522)
This commit is contained in:
@@ -59,13 +59,13 @@ export class CreateCommand extends CommandRunner {
|
||||
}
|
||||
|
||||
private createScript(name: string) {
|
||||
const contents = ["import { PrismaService } from '../../prisma';", ''];
|
||||
const contents = ["import { PrismaClient } from '@prisma/client';", ''];
|
||||
contents.push(`export class ${name} {`);
|
||||
contents.push(' // do the migration');
|
||||
contents.push(' static async up(db: PrismaService) {}');
|
||||
contents.push(' static async up(db: PrismaClient) {}');
|
||||
contents.push('');
|
||||
contents.push(' // revert the migration');
|
||||
contents.push(' static async down(db: PrismaService) {}');
|
||||
contents.push(' static async down(db: PrismaClient) {}');
|
||||
|
||||
contents.push('}');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user