- removed legacy Prisma SQLite driver and all Better-Sqlite dependencies [Minor] - updated schema to utilize purely postgresql providers [Patch] - modified migration scripts to seamlessly convert local sqlite DBs to PostgreSQL containers using keinos/sqlite3 [Minor] - updated deployment scripts, Coolify pipelines, and Nginx proxy support [Patch] - injected Prisma Client Extensions for multi-tenant Row Level Security isolation [Minor] - stabilized PrismaClient initialization utilizing the official adapter-pg runtime pattern [Patch] - bumped version to 2.1.0
24 lines
801 B
TypeScript
24 lines
801 B
TypeScript
import { prisma } from "../src/lib/db";
|
|
|
|
async function main() {
|
|
const plugins = await prisma.installedPlugin.findMany();
|
|
console.log("Installed plugins:");
|
|
plugins.forEach((p) => console.log(` ${p.pluginId} | config: ${p.config.substring(0, 60)}`));
|
|
|
|
const geojson = plugins.find((p) => p.pluginId === "geojson");
|
|
if (geojson) {
|
|
await prisma.installedPlugin.delete({ where: { id: geojson.id } });
|
|
console.log("\nDeleted orphaned 'geojson' record.");
|
|
} else {
|
|
console.log("\nNo orphaned 'geojson' record found.");
|
|
}
|
|
|
|
const remaining = await prisma.installedPlugin.findMany();
|
|
console.log("\nRemaining plugins:");
|
|
remaining.forEach((p) => console.log(` ${p.pluginId}`));
|
|
|
|
await prisma.$disconnect();
|
|
}
|
|
|
|
main().catch(console.error);
|