DB: sichere Defaults fuer Rollen und Scopes unter MySQL

This commit is contained in:
OpenGenesis (MPL 2.0) committed 2026-10-07 23:09:51 +02:00
1 parent 6d6849ca63
commit 75ac7e552d
1 file changed
+2 -6
@@ -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;