mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-10-02 02:43:44 +00:00
A new table, permission_grants (MySQL migration 96, SQLite 79), and the IPermissionGrants interface with MySQL, SQLite and TestSQL implementations. A row grants (or with deny, takes away) a dashboard permission, a slash command, a permission category or every command up to a GM level, for one account or one character, with an optional expiry, who granted it and when, and a note. Rows are never deleted: removing one sets revoked_at/revoked_by, so the table is also the history. Nothing reads it yet. Check: both migrations run on a fresh and an existing database; DatabaseParityTests PermissionGrants passes against MariaDB (DLU_TEST_MYSQL_HOST) and SQLite gives the same results. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
55 lines
1.0 KiB
CMake
55 lines
1.0 KiB
CMake
set(DDATABASES_DATABASES_MYSQL_TABLES_SOURCES
|
|
"Accounts.cpp"
|
|
"AccountsRewardCodes.cpp"
|
|
"AuditLog.cpp"
|
|
"Dashboard.cpp"
|
|
"Economy.cpp"
|
|
"Admin.cpp"
|
|
"ServerConfig.cpp"
|
|
"SlashCommands.cpp"
|
|
"ScheduledTasks.cpp"
|
|
"CharacterSnapshots.cpp"
|
|
"AccountNotes.cpp"
|
|
"AccountStrikes.cpp"
|
|
"ApiKeys.cpp"
|
|
"PermissionGrants.cpp"
|
|
"Moderation.cpp"
|
|
"ServerHealth.cpp"
|
|
"PlayerPositions.cpp"
|
|
"AiSuggestions.cpp"
|
|
"ServerOperations.cpp"
|
|
"LiveOps.cpp"
|
|
"FeaturedProperties.cpp"
|
|
"Contraband.cpp"
|
|
"PropertyRent.cpp"
|
|
"PropertyReputation.cpp"
|
|
"BbbAutosave.cpp"
|
|
"ServerTraffic.cpp"
|
|
"MessageCaptures.cpp"
|
|
"ChatLog.cpp"
|
|
"RelatedData.cpp"
|
|
"ActivityLog.cpp"
|
|
"Behaviors.cpp"
|
|
"BugReports.cpp"
|
|
"CharInfo.cpp"
|
|
"CharXml.cpp"
|
|
"CommandLog.cpp"
|
|
"Friends.cpp"
|
|
"IgnoreList.cpp"
|
|
"Leaderboard.cpp"
|
|
"Mail.cpp"
|
|
"MigrationHistory.cpp"
|
|
"ObjectIdTracker.cpp"
|
|
"PetNames.cpp"
|
|
"PlayerCheatDetections.cpp"
|
|
"PlayKeys.cpp"
|
|
"Property.cpp"
|
|
"PropertyContents.cpp"
|
|
"Servers.cpp"
|
|
"Ugc.cpp"
|
|
"UgcModularBuild.cpp"
|
|
"UgcLookup.cpp"
|
|
PARENT_SCOPE
|
|
)
|
|
|