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

legacyCommand() — drizzle-orm Function Reference

Architecture documentation for the legacyCommand() function in index.ts from the drizzle-orm codebase.

Entity Profile

Dependency Diagram

graph TD
  7606ac95_e727_16e4_93f0_3e1a9fefe950["legacyCommand()"]
  3337fb45_cdc6_b02c_a270_5043f829b54b["index.ts"]
  7606ac95_e727_16e4_93f0_3e1a9fefe950 -->|defined in| 3337fb45_cdc6_b02c_a270_5043f829b54b
  style 7606ac95_e727_16e4_93f0_3e1a9fefe950 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-kit/src/cli/index.ts lines 15–25

const legacyCommand = (name: string, newName: string) => {
	return command({
		name,
		hidden: true,
		handler: () => {
			console.log(
				`This command is deprecated, please use updated '${newName}' command (see https://orm.drizzle.team/kit-docs/upgrade-21#how-to-migrate-to-0210)`,
			);
		},
	});
};

Domain

Subdomains

Frequently Asked Questions

What does legacyCommand() do?
legacyCommand() is a function in the drizzle-orm codebase, defined in drizzle-kit/src/cli/index.ts.
Where is legacyCommand() defined?
legacyCommand() is defined in drizzle-kit/src/cli/index.ts at line 15.

Analyze Your Own Codebase

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

Try Supermodel Free