Home / Function/ assertV1OutFolder() — drizzle-orm Function Reference

assertV1OutFolder() — drizzle-orm Function Reference

Architecture documentation for the assertV1OutFolder() function in utils.ts from the drizzle-orm codebase.

Entity Profile

Dependency Diagram

graph TD
  5f10022b_622b_eb8e_812e_30a6459027c8["assertV1OutFolder()"]
  5847e5ae_7b4a_4b02_b68f_883ef88b3c1a["utils.ts"]
  5f10022b_622b_eb8e_812e_30a6459027c8 -->|defined in| 5847e5ae_7b4a_4b02_b68f_883ef88b3c1a
  285d7baa_1c76_20e1_0c68_26eaff3a4a05["prepareAndMigratePg()"]
  285d7baa_1c76_20e1_0c68_26eaff3a4a05 -->|calls| 5f10022b_622b_eb8e_812e_30a6459027c8
  41b84052_7d33_8f63_3c95_ec57735ef60e["prepareAndMigrateMysql()"]
  41b84052_7d33_8f63_3c95_ec57735ef60e -->|calls| 5f10022b_622b_eb8e_812e_30a6459027c8
  d3966aac_3570_4a25_bd4d_13770b298d13["prepareAndMigrateSingleStore()"]
  d3966aac_3570_4a25_bd4d_13770b298d13 -->|calls| 5f10022b_622b_eb8e_812e_30a6459027c8
  34d42b06_7a19_f47a_1ff9_7b6752ce0bda["prepareAndMigrateSqlite()"]
  34d42b06_7a19_f47a_1ff9_7b6752ce0bda -->|calls| 5f10022b_622b_eb8e_812e_30a6459027c8
  fb79a54b_99a5_2063_0a0c_a9cc728865a9["prepareAndMigrateLibSQL()"]
  fb79a54b_99a5_2063_0a0c_a9cc728865a9 -->|calls| 5f10022b_622b_eb8e_812e_30a6459027c8
  c0a6d9e9_7fc7_f2f9_8914_70f0c4f8233f["drop.handler()"]
  c0a6d9e9_7fc7_f2f9_8914_70f0c4f8233f -->|calls| 5f10022b_622b_eb8e_812e_30a6459027c8
  style 5f10022b_622b_eb8e_812e_30a6459027c8 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-kit/src/utils.ts lines 44–61

export const assertV1OutFolder = (out: string) => {
	if (!existsSync(out)) return;

	const oldMigrationFolders = readdirSync(out).filter(
		(it) => it.length === 14 && /^\d+$/.test(it),
	);

	if (oldMigrationFolders.length > 0) {
		console.log(
			`Your migrations folder format is outdated, please run ${
				chalk.green.bold(
					`drizzle-kit up`,
				)
			}`,
		);
		process.exit(1);
	}
};

Domain

Subdomains

Frequently Asked Questions

What does assertV1OutFolder() do?
assertV1OutFolder() is a function in the drizzle-orm codebase, defined in drizzle-kit/src/utils.ts.
Where is assertV1OutFolder() defined?
assertV1OutFolder() is defined in drizzle-kit/src/utils.ts at line 44.
What calls assertV1OutFolder()?
assertV1OutFolder() is called by 6 function(s): drop.handler, prepareAndMigrateLibSQL, prepareAndMigrateMysql, prepareAndMigratePg, prepareAndMigrateSingleStore, prepareAndMigrateSqlite.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free