updateUpToV6() — drizzle-orm Function Reference
Architecture documentation for the updateUpToV6() function in sqliteUp.ts from the drizzle-orm codebase.
Entity Profile
Dependency Diagram
graph TD 4c83c7fc_df93_8e5a_e2db_46ec9d96b601["updateUpToV6()"] 94965299_9f07_b2e2_0976_2d31bbc17f1a["sqliteUp.ts"] 4c83c7fc_df93_8e5a_e2db_46ec9d96b601 -->|defined in| 94965299_9f07_b2e2_0976_2d31bbc17f1a a951e55e_c8d5_0591_7052_c26b83bfd3f2["upSqliteHandler()"] a951e55e_c8d5_0591_7052_c26b83bfd3f2 -->|calls| 4c83c7fc_df93_8e5a_e2db_46ec9d96b601 style 4c83c7fc_df93_8e5a_e2db_46ec9d96b601 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
drizzle-kit/src/cli/commands/sqliteUp.ts lines 28–52
const updateUpToV6 = (json: Record<string, any>): SQLiteSchema => {
const schema = sqliteSchemaV5.parse(json);
const tables = mapEntries(schema.tables, (tableKey, table) => {
const columns = mapEntries(table.columns, (key, value) => {
if (
value.default
&& (typeof value.default === 'object' || Array.isArray(value.default))
) {
value.default = `'${JSON.stringify(value.default)}'`;
}
return [key, value];
});
table.columns = columns;
return [tableKey, table];
});
return {
...schema,
version: '6',
dialect: 'sqlite',
tables: tables,
views: {},
};
};
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does updateUpToV6() do?
updateUpToV6() is a function in the drizzle-orm codebase, defined in drizzle-kit/src/cli/commands/sqliteUp.ts.
Where is updateUpToV6() defined?
updateUpToV6() is defined in drizzle-kit/src/cli/commands/sqliteUp.ts at line 28.
What calls updateUpToV6()?
updateUpToV6() is called by 1 function(s): upSqliteHandler.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free