const { PrismaClient } = require('@prisma/client');
const p = new PrismaClient();
async function main() {
  await p['']('ALTER TABLE "GisFeature" ADD COLUMN IF NOT EXISTS "geometrySource" TEXT');
  console.log('OK: geometrySource column added');
  await p['']('CREATE INDEX IF NOT EXISTS "GisFeature_geometrySource_idx" ON "GisFeature" ("geometrySource")');
  console.log('OK: index created');
  await p['']();
}
main().catch(e => { console.log('ERR:', e.message); p[''](); });
