mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-14 19:41:09 +02:00
- Add safe-db-push.mjs script for safer database migrations - Update docker-entrypoint.sh with db:push fallback when migrations fail - Add validate-migrations.mjs script for CI migration validation - Update CI workflow to use migration validation - Update drizzle.config.ts with improved configuration
13 lines
391 B
TypeScript
13 lines
391 B
TypeScript
import { defineConfig } from 'drizzle-kit';
|
|
|
|
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/manacore',
|
|
},
|
|
schemaFilter: ['auth', 'credits', 'error_logs', 'referrals', 'public'],
|
|
verbose: true,
|
|
strict: true,
|
|
});
|