RENAME_TABLE_ERROR() — astro Function Reference
Architecture documentation for the RENAME_TABLE_ERROR() function in errors.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD dee44a47_c3fc_b4da_256e_7fad84f68ef5["RENAME_TABLE_ERROR()"] 7883139a_8aae_09d4_83e3_9bd7603e7403["errors.ts"] dee44a47_c3fc_b4da_256e_7fad84f68ef5 -->|defined in| 7883139a_8aae_09d4_83e3_9bd7603e7403 style dee44a47_c3fc_b4da_256e_7fad84f68ef5 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/db/src/core/errors.ts lines 7–18
export const RENAME_TABLE_ERROR = (oldTable: string, newTable: string) => {
return (
colors.red('\u25B6 Potential table rename detected: ' + oldTable + ' -> ' + newTable) +
`
You cannot add and remove tables in the same schema update batch.
1. Use "deprecated: true" to deprecate a table before renaming.
2. Use "--force-reset" to ignore this warning and reset the database (deleting all of your data).
Visit https://docs.astro.build/en/guides/astro-db/#renaming-tables to learn more.`
);
};
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does RENAME_TABLE_ERROR() do?
RENAME_TABLE_ERROR() is a function in the astro codebase, defined in packages/db/src/core/errors.ts.
Where is RENAME_TABLE_ERROR() defined?
RENAME_TABLE_ERROR() is defined in packages/db/src/core/errors.ts at line 7.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free