mirror of
https://github.com/daffyyyy/CS2-SimpleAdmin.git
synced 2026-02-23 04:00:38 +00:00
Warn migration
This commit is contained in:
@@ -19,6 +19,9 @@
|
|||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<None Update="lang\**\*.*" CopyToOutputDirectory="PreserveNewest" />
|
<None Update="lang\**\*.*" CopyToOutputDirectory="PreserveNewest" />
|
||||||
|
<None Update="Database\Migrations\010_CreateWarnsTable.sql">
|
||||||
|
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||||
|
</None>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
14
Database/Migrations/010_CreateWarnsTable.sql
Normal file
14
Database/Migrations/010_CreateWarnsTable.sql
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
CREATE TABLE IF NOT EXISTS `sa_warns` (
|
||||||
|
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||||
|
`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` int(11) NOT NULL,
|
||||||
|
`ends` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
|
||||||
|
`created` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||||
|
`server_id` int(11) DEFAULT NULL,
|
||||||
|
`status` enum('ACTIVE','EXPIRED','') NOT NULL DEFAULT 'ACTIVE',
|
||||||
|
PRIMARY KEY (`id`)
|
||||||
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|
||||||
Reference in New Issue
Block a user