mirror of
https://github.com/freedbygrace/ActiveDirectoryManager.git
synced 2026-07-26 11:59:14 +00:00
625d458b1a
Replit-Commit-Author: Agent Replit-Commit-Session-Id: 705f2157-ef97-4fbd-89e4-8c7f2ecaea90 Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/7ed01c5f-a82d-405a-b728-b2e3d127c60c/35205fbe-afee-4cb7-9e5a-fd8d79862977.jpg
9 lines
596 B
SQL
9 lines
596 B
SQL
-- Add autoAddRootDSE column to dynamic_group_rules table
|
|
ALTER TABLE dynamic_group_rules ADD COLUMN IF NOT EXISTS auto_add_root_dse BOOLEAN DEFAULT TRUE;
|
|
|
|
-- Update existing records to set autoAddRootDSE to TRUE for better user experience
|
|
UPDATE dynamic_group_rules SET auto_add_root_dse = TRUE WHERE auto_add_root_dse IS NULL;
|
|
|
|
-- Change the defaults for create_group_if_not_exists and create_ou_if_not_exists to TRUE
|
|
ALTER TABLE dynamic_group_rules ALTER COLUMN create_group_if_not_exists SET DEFAULT TRUE;
|
|
ALTER TABLE dynamic_group_rules ALTER COLUMN create_ou_if_not_exists SET DEFAULT TRUE; |