canChangeTypeWithoutQuery() — astro Function Reference
Architecture documentation for the canChangeTypeWithoutQuery() function in migration-queries.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 7682e3a8_d373_faeb_f416_795930ac2f26["canChangeTypeWithoutQuery()"] d1459290_7e42_1f92_05bd_dcc3aeda9fd3["migration-queries.ts"] 7682e3a8_d373_faeb_f416_795930ac2f26 -->|defined in| d1459290_7e42_1f92_05bd_dcc3aeda9fd3 e15cd5dc_37f0_2b94_a984_85714025b10b["canRecreateTableWithoutDataLoss()"] e15cd5dc_37f0_2b94_a984_85714025b10b -->|calls| 7682e3a8_d373_faeb_f416_795930ac2f26 4cd3c863_fa29_c34a_a49a_467807e47651["getUpdatedColumns()"] 4cd3c863_fa29_c34a_a49a_467807e47651 -->|calls| 7682e3a8_d373_faeb_f416_795930ac2f26 style 7682e3a8_d373_faeb_f416_795930ac2f26 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/db/src/core/cli/migration-queries.ts lines 406–410
function canChangeTypeWithoutQuery(oldColumn: DBColumn, newColumn: DBColumn) {
return typeChangesWithoutQuery.some(
({ from, to }) => oldColumn.type === from && newColumn.type === to,
);
}
Domain
Subdomains
Source
Frequently Asked Questions
What does canChangeTypeWithoutQuery() do?
canChangeTypeWithoutQuery() is a function in the astro codebase, defined in packages/db/src/core/cli/migration-queries.ts.
Where is canChangeTypeWithoutQuery() defined?
canChangeTypeWithoutQuery() is defined in packages/db/src/core/cli/migration-queries.ts at line 406.
What calls canChangeTypeWithoutQuery()?
canChangeTypeWithoutQuery() is called by 2 function(s): canRecreateTableWithoutDataLoss, getUpdatedColumns.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free