From 75ac7e552da324f0e6e4e58685541d50df8a2cbc Mon Sep 17 00:00:00 2001 From: "OpenGenesis (MPL 2.0)" <153564363+opengenesislink@users.noreply.github.com> Date: Wed, 7 Oct 2026 23:09:51 +0200 Subject: [PATCH] DB: sichere Defaults fuer Rollen und Scopes unter MySQL --- OpenSim/Data/MySQL/Resources/UserAccount.migrations | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/OpenSim/Data/MySQL/Resources/UserAccount.migrations b/OpenSim/Data/MySQL/Resources/UserAccount.migrations index 488a4886..0e2dc3a9 100644 --- a/OpenSim/Data/MySQL/Resources/UserAccount.migrations +++ b/OpenSim/Data/MySQL/Resources/UserAccount.migrations @@ -55,11 +55,7 @@ COMMIT; BEGIN; -ALTER TABLE `UserAccounts` ADD `NexVerseRoles` text NOT NULL; -ALTER TABLE `UserAccounts` ADD `NexVerseScopes` text NOT NULL; - -UPDATE `UserAccounts` -SET `NexVerseRoles` = 'resident' -WHERE `NexVerseRoles` = ''; +ALTER TABLE `UserAccounts` ADD `NexVerseRoles` varchar(512) NOT NULL DEFAULT 'resident'; +ALTER TABLE `UserAccounts` ADD `NexVerseScopes` varchar(2048) NOT NULL DEFAULT ''; COMMIT;