(prismaSchemaFile: string, options: DevOptions)
| 75 | } |
| 76 | |
| 77 | function runDev(prismaSchemaFile: string, options: DevOptions) { |
| 78 | try { |
| 79 | const cmd = [ |
| 80 | 'migrate dev', |
| 81 | ` --schema "${prismaSchemaFile}"`, |
| 82 | ' --skip-generate', |
| 83 | ' --skip-seed', |
| 84 | options.name ? ` --name "${options.name}"` : '', |
| 85 | options.createOnly ? ' --create-only' : '', |
| 86 | ].join(''); |
| 87 | execPrisma(cmd); |
| 88 | } catch (err) { |
| 89 | handleSubProcessError(err); |
| 90 | } |
| 91 | } |
| 92 | |
| 93 | async function runReset(prismaSchemaFile: string, options: ResetOptions) { |
| 94 | try { |
no test coverage detected