Keep legacy subscription tables as unmanaged instead of dropping them

This commit is contained in:
NeilClack
2026-09-10 11:48:49 -05:00
parent d89fc6837c
commit 4a1777de87
4 changed files with 40 additions and 1 deletions
+9
View File
@@ -5,6 +5,15 @@ import { defineConfig } from 'prisma/config';
export default defineConfig({
schema: 'prisma/schema.prisma',
// Legacy subscription tables are retained in the database but are no longer
// managed by Prisma Migrate. They must never be dropped (production may not
// own them and the data is kept for recovery).
experimental: {
externalTables: true
},
tables: {
external: ['public.SubscriptionLevel', 'public.ProclamationCategorySubscriptionLevel']
},
migrations: {
path: 'prisma/migrations',
seed: 'tsx prisma/seed.ts'