mirror of
https://github.com/daffyyyy/CS2-SimpleAdmin.git
synced 2026-09-27 20:17:04 +02: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!
**
13 lines
No EOL
587 B
SQL
13 lines
No EOL
587 B
SQL
CREATE TABLE IF NOT EXISTS `sa_warns` (
|
|
`id` INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
|
|
`player_name` VARCHAR(128) DEFAULT NULL,
|
|
`player_steamid` VARCHAR(64) NOT NULL,
|
|
`admin_steamid` VARCHAR(64) NOT NULL,
|
|
`admin_name` VARCHAR(128) NOT NULL,
|
|
`reason` VARCHAR(255) NOT NULL,
|
|
`duration` INTEGER NOT NULL,
|
|
`ends` TIMESTAMP NOT NULL,
|
|
`created` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
`server_id` INTEGER DEFAULT NULL,
|
|
`status` TEXT NOT NULL DEFAULT 'ACTIVE'
|
|
); |