mirror of
https://github.com/daffyyyy/CS2-SimpleAdmin.git
synced 2026-02-17 18:39:07 +00:00
Reworked the database layer to support both MySQL and SQLite via new provider classes and migration scripts for each backend. Updated the build workflow to support building and packaging additional modules, including StealthModule and BanSoundModule, and improved artifact handling. Refactored command registration to allow dynamic registration/unregistration and improved API event handling. Updated dependencies, project structure, and configuration checks for better reliability and extensibility. Added new language files, updated versioning, and removed obsolete files.
**⚠️ Warning: SQLite support is currently experimental.
Using this version requires reconfiguration of your database settings!
Plugin now uses UTC time. Please adjust your configurations accordingly!
**
24 lines
942 B
SQL
24 lines
942 B
SQL
ALTER TABLE `sa_bans` CHANGE `player_steamid` `player_steamid` BIGINT NULL DEFAULT NULL;
|
|
UPDATE `sa_bans`
|
|
SET admin_steamid = '0'
|
|
WHERE admin_steamid NOT REGEXP '^[0-9]+$';
|
|
ALTER TABLE `sa_bans` CHANGE `admin_steamid` `admin_steamid` BIGINT NOT NULL;
|
|
|
|
ALTER TABLE `sa_mutes` CHANGE `player_steamid` `player_steamid` BIGINT NULL DEFAULT NULL;
|
|
UPDATE `sa_mutes`
|
|
SET admin_steamid = '0'
|
|
WHERE admin_steamid NOT REGEXP '^[0-9]+$';
|
|
ALTER TABLE `sa_mutes` CHANGE `admin_steamid` `admin_steamid` BIGINT NOT NULL;
|
|
|
|
ALTER TABLE `sa_warns` CHANGE `player_steamid` `player_steamid` BIGINT NULL DEFAULT NULL;
|
|
UPDATE `sa_warns`
|
|
SET admin_steamid = '0'
|
|
WHERE admin_steamid NOT REGEXP '^[0-9]+$';
|
|
ALTER TABLE `sa_warns` CHANGE `admin_steamid` `admin_steamid` BIGINT NOT NULL;
|
|
|
|
UPDATE `sa_admins`
|
|
SET player_steamid = '0'
|
|
WHERE player_steamid NOT REGEXP '^[0-9]+$';
|
|
ALTER TABLE `sa_admins` CHANGE `player_steamid` `player_steamid` BIGINT NULL DEFAULT NULL;
|
|
|