Files
website/drizzle.config.ts
Stan Runge 772e699655
Some checks failed
Deploy production / deploy (push) Has been cancelled
data holders: private tracker of every organisation holding my address, email, phone or IBAN
dataholders schema (orgs + identity) with migration and personal_app grants,
idempotent CSV import (upsert on name+login, never wipes, keeps site edits and
ticks), owner-only /trackers/data-holders with search, filters, pagination,
inline edit/add and a moving checklist per identifier
2026-10-25 16:10:24 +00:00

42 lines
933 B
TypeScript
Executable File

import { defineConfig } from 'drizzle-kit';
// Drizzle owns the core schemas only. Deliberately excluded:
// - lists: runtime tables created through meta.create_list() (owned by personal_ddl)
// - legacy: pre-reorg tables kept read-only for rollback
// - energy: owned by ned-collector
// Migrations run as the schema owner (`personal`), never as the app role.
export default defineConfig({
dialect: 'postgresql',
schema: './src/lib/server/db/schema/index.ts',
out: './drizzle',
schemaFilter: [
'auth',
'money',
'house',
'ref',
'games',
'cs',
'animaldex',
'site',
'meta',
'health',
'books',
'tasks',
'groceries',
'home',
'cars',
'music',
'hardware',
'planes',
'wildlife',
'trains',
'dataholders'
],
migrations: { schema: 'drizzle', table: '__drizzle_migrations' },
verbose: true,
strict: true,
dbCredentials: {
url: (process.env.DB_MIGRATE_URL || process.env.DB_URL)!
}
});