mirror of
https://github.com/haexhub/haex-hub.git
synced 2025-12-16 06:10:50 +01:00
Moved database schemas from src-tauri/database/schemas/ to src/database/schemas/ to fix bundling issues and resolved circular import dependency that caused "Cannot access uninitialized variable" error in production builds. Key changes: - Moved crdtColumnNames definition into haex.ts to break circular dependency - Restored .$defaultFn(() => crypto.randomUUID()) calls - Kept AnySQLiteColumn type annotations - Removed obsolete TDZ fix script (no longer needed) - Updated all import paths across stores and configuration files
11 lines
248 B
TypeScript
11 lines
248 B
TypeScript
import { defineConfig } from 'drizzle-kit'
|
|
|
|
export default defineConfig({
|
|
schema: './src/database/schemas/**.ts',
|
|
out: './src-tauri/database/migrations',
|
|
dialect: 'sqlite',
|
|
dbCredentials: {
|
|
url: './src-tauri/database/vault.db',
|
|
},
|
|
})
|