Some checks failed
Deploy production / deploy (push) Has been cancelled
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
42 lines
933 B
TypeScript
Executable File
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)!
|
|
}
|
|
});
|