mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-23 05:06:41 +02:00
🔧 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:
parent
188290b427
commit
6807543d60
21 changed files with 283 additions and 179 deletions
|
|
@ -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' });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue