Forked from OpenCode v1.17.4 with multi-agent system: - 5 agents: aircoding, scheduler, worker, architect, reviewer - Deterministic DAG scheduling engine (coordinator_tick) - Tool whitelists as hard enforcement - AirCoding validation plugin - V1 requirements: C4 docs, ADR, AGENTS.md, debug-log.md - Design documents in docs/
46 lines
996 B
TypeScript
46 lines
996 B
TypeScript
/* 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
|