From c54e424c0570ddca9a6c02a8c4b1c4c9b8172a59 Mon Sep 17 00:00:00 2001 From: Schalli Date: Tue, 28 Jul 2026 15:40:28 +0200 Subject: [PATCH] feat(260728-lih): default LDAP syncIntervalMin to 0 (auto-sync off) - LdapConfig.syncIntervalMin default changed 60 -> 0 - New migration sets column DEFAULT only, no data rewrite - isActive @default(true) left unchanged (gates LDAP login only) Co-Authored-By: Claude Opus 4.8 (1M context) --- .../20260728134010_ldap_sync_interval_default_off/migration.sql | 2 ++ apps/api/prisma/schema.prisma | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 apps/api/prisma/migrations/20260728134010_ldap_sync_interval_default_off/migration.sql diff --git a/apps/api/prisma/migrations/20260728134010_ldap_sync_interval_default_off/migration.sql b/apps/api/prisma/migrations/20260728134010_ldap_sync_interval_default_off/migration.sql new file mode 100644 index 0000000..2112a94 --- /dev/null +++ b/apps/api/prisma/migrations/20260728134010_ldap_sync_interval_default_off/migration.sql @@ -0,0 +1,2 @@ +-- AlterTable +ALTER TABLE "LdapConfig" ALTER COLUMN "syncIntervalMin" SET DEFAULT 0; diff --git a/apps/api/prisma/schema.prisma b/apps/api/prisma/schema.prisma index 3a3f8ab..3648872 100644 --- a/apps/api/prisma/schema.prisma +++ b/apps/api/prisma/schema.prisma @@ -67,7 +67,7 @@ model LdapConfig { bindDn String? bindPassword String? searchFilter String @default("(objectClass=person)") - syncIntervalMin Int @default(60) + syncIntervalMin Int @default(0) isActive Boolean @default(true) tlsRejectUnauthorized Boolean @default(true) groupFilterDns String[] @default([])