Home / Function/ RENAME_COLUMN_ERROR() — astro Function Reference

RENAME_COLUMN_ERROR() — astro Function Reference

Architecture documentation for the RENAME_COLUMN_ERROR() function in errors.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  cb6e4f38_d13f_60ae_6c7d_902f34f740f6["RENAME_COLUMN_ERROR()"]
  7883139a_8aae_09d4_83e3_9bd7603e7403["errors.ts"]
  cb6e4f38_d13f_60ae_6c7d_902f34f740f6 -->|defined in| 7883139a_8aae_09d4_83e3_9bd7603e7403
  style cb6e4f38_d13f_60ae_6c7d_902f34f740f6 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/db/src/core/errors.ts lines 20–26

export const RENAME_COLUMN_ERROR = (oldSelector: string, newSelector: string) => {
	return (
		colors.red('▶ Potential column rename detected: ' + oldSelector + ', ' + newSelector) +
		`\n  You cannot add and remove columns in the same table.` +
		`\n  To resolve, add a 'deprecated: true' flag to '${oldSelector}' instead.`
	);
};

Domain

Subdomains

Frequently Asked Questions

What does RENAME_COLUMN_ERROR() do?
RENAME_COLUMN_ERROR() is a function in the astro codebase, defined in packages/db/src/core/errors.ts.
Where is RENAME_COLUMN_ERROR() defined?
RENAME_COLUMN_ERROR() is defined in packages/db/src/core/errors.ts at line 20.

Analyze Your Own Codebase

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

Try Supermodel Free