MCPcopy
hub / github.com/drizzle-team/drizzle-orm / assertV1OutFolder

Function assertV1OutFolder

drizzle-kit/src/utils.ts:44–61  ·  view source on GitHub ↗
(out: string)

Source from the content-addressed store, hash-verified

42};
43
44export 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
63export type Journal = {
64 version: string;

Callers 6

schema.tsFile · 0.90
prepareAndMigratePgFunction · 0.90
prepareAndMigrateMysqlFunction · 0.90
prepareAndMigrateSqliteFunction · 0.90
prepareAndMigrateLibSQLFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected