Download packages/effect-drizzle-sqlite/src/up-migrations/utils.ts from SaylorTwift/opencode: direct link, hf CLI and curl.
- Browser
- Download file 996 Bytes
-
https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/effect-drizzle-sqlite/src/up-migrations/utils.ts
- Command line
-
hf download hf://SaylorTwift/opencode/packages/effect-drizzle-sqlite/src/up-migrations/utils.ts
-
curl -L -o utils.ts https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/effect-drizzle-sqlite/src/up-migrations/utils.ts
996 Bytes
| /* oxlint-disable */ | |
| export interface UpgradeResult { | |
| newDb: boolean | |
| } | |
| export const MIGRATIONS_TABLE_VERSIONS = { | |
| sqlite: 1, | |
| pg: 1, | |
| effect: 1, | |
| mysql: 1, | |
| mssql: 1, | |
| cockroach: 1, | |
| singlestore: 1, | |
| } as const | |
| export const GET_VERSION_FOR = { | |
| mysql: (columns: string[]): number => { | |
| if (columns.includes("name")) return 1 | |
| return 0 | |
| }, | |
| pg: (columns: string[]): number => { | |
| if (columns.includes("name")) return 1 | |
| return 0 | |
| }, | |
| effect: (columns: string[]): number => { | |
| if (columns.includes("name")) return 1 | |
| return 0 | |
| }, | |
| mssql: (columns: string[]): number => { | |
| if (columns.includes("name")) return 1 | |
| return 0 | |
| }, | |
| cockroach: (columns: string[]): number => { | |
| if (columns.includes("name")) return 1 | |
| return 0 | |
| }, | |
| singlestore: (columns: string[]): number => { | |
| if (columns.includes("name")) return 1 | |
| return 0 | |
| }, | |
| sqlite: (columns: string[]): number => { | |
| if (columns.includes("name")) return 1 | |
| return 0 | |
| }, | |
| } as const | |