getDroppedTables() — astro Function Reference
Architecture documentation for the getDroppedTables() function in migration-queries.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD cafbd193_7993_434a_13e7_6fd9d7605ada["getDroppedTables()"] d1459290_7e42_1f92_05bd_dcc3aeda9fd3["migration-queries.ts"] cafbd193_7993_434a_13e7_6fd9d7605ada -->|defined in| d1459290_7e42_1f92_05bd_dcc3aeda9fd3 8d0e7bb2_007f_5d88_64a2_3b0646b309a1["getMigrationQueries()"] 8d0e7bb2_007f_5d88_64a2_3b0646b309a1 -->|calls| cafbd193_7993_434a_13e7_6fd9d7605ada style cafbd193_7993_434a_13e7_6fd9d7605ada fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/db/src/core/cli/migration-queries.ts lines 218–224
function getDroppedTables(oldTables: DBSnapshot, newTables: DBSnapshot): ResolvedDBTables {
const dropped: ResolvedDBTables = {};
for (const [key, oldTable] of Object.entries(oldTables.schema)) {
if (!(key in newTables.schema)) dropped[key] = oldTable;
}
return dropped;
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does getDroppedTables() do?
getDroppedTables() is a function in the astro codebase, defined in packages/db/src/core/cli/migration-queries.ts.
Where is getDroppedTables() defined?
getDroppedTables() is defined in packages/db/src/core/cli/migration-queries.ts at line 218.
What calls getDroppedTables()?
getDroppedTables() is called by 1 function(s): getMigrationQueries.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free