(out: string)
| 42 | }; |
| 43 | |
| 44 | export const assertV1OutFolder = (out: string) => { |
| 45 | if (!existsSync(out)) return; |
| 46 | |
| 47 | const oldMigrationFolders = readdirSync(out).filter( |
| 48 | (it) => it.length === 14 && /^\d+$/.test(it), |
| 49 | ); |
| 50 | |
| 51 | if (oldMigrationFolders.length > 0) { |
| 52 | console.log( |
| 53 | `Your migrations folder format is outdated, please run ${ |
| 54 | chalk.green.bold( |
| 55 | `drizzle-kit up`, |
| 56 | ) |
| 57 | }`, |
| 58 | ); |
| 59 | process.exit(1); |
| 60 | } |
| 61 | }; |
| 62 | |
| 63 | export type Journal = { |
| 64 | version: string; |
no outgoing calls
no test coverage detected