🔧 chore: create @manacore/shared-drizzle-config and migrate 16 configs

- Create factory function with dbName, schemaPath, outDir, schemaFilter options
- Migrate 12 app backends: calendar, chat, clock, contacts, nutriphi, picture,
  planta, presi, questions, skilltree, storage, todo
- Migrate 4 services: mana-core-auth, telegram-zitare-bot, telegram-todo-bot,
  telegram-nutriphi-bot
- Update consolidation docs with completed Drizzle config task

Savings: ~160 LOC (16 configs × ~10 LOC each)
This commit is contained in:
Till-JS 2026-01-29 16:54:44 +01:00
parent 188290b427
commit 6807543d60
21 changed files with 283 additions and 179 deletions

View file

@ -1,12 +1,3 @@
import { defineConfig } from 'drizzle-kit';
import { createDrizzleConfig } from '@manacore/shared-drizzle-config';
export default defineConfig({
dialect: 'postgresql',
schema: './src/db/schema/index.ts',
out: './src/db/migrations',
dbCredentials: {
url: process.env.DATABASE_URL || 'postgresql://manacore:devpassword@localhost:5432/clock',
},
verbose: true,
strict: true,
});
export default createDrizzleConfig({ dbName: 'clock' });