mirror of
https://github.com/apotdevin/thunderhub.git
synced 2026-08-13 12:33:08 +02:00
15 lines
418 B
TypeScript
15 lines
418 B
TypeScript
import { defineConfig } from 'drizzle-kit';
|
|
|
|
const dbType = process.env.DB_TYPE || 'sqlite';
|
|
|
|
export default dbType === 'postgres'
|
|
? defineConfig({
|
|
schema: './src/server/modules/database/schema/pg/*',
|
|
out: './drizzle/pg',
|
|
dialect: 'postgresql',
|
|
})
|
|
: defineConfig({
|
|
schema: './src/server/modules/database/schema/sqlite/*',
|
|
out: './drizzle/sqlite',
|
|
dialect: 'sqlite',
|
|
});
|