mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-11 10:11:09 +00:00
Fix a few mistakes I made (#82887)
Co-authored-by: Ghom <42542238+Ghommie@users.noreply.github.com>
This commit is contained in:
@@ -16,17 +16,15 @@ INSERT INTO `SS13_schema_revision` (`major`, `minor`) VALUES (5, 27);
|
|||||||
In any query remember to add a prefix to the table names if you use one.
|
In any query remember to add a prefix to the table names if you use one.
|
||||||
-----------------------------------------------------
|
-----------------------------------------------------
|
||||||
Version 5.27, 26 April 2024, by zephyrtfa
|
Version 5.27, 26 April 2024, by zephyrtfa
|
||||||
Add the ip intel table
|
Add the ip intel whitelist table
|
||||||
```sql
|
```sql
|
||||||
DROP TABLE IF EXISTS `ipintel`;
|
DROP TABLE IF EXISTS `ipintel_whitelist`;
|
||||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||||
/*!40101 SET character_set_client = utf8 */;
|
/*!40101 SET character_set_client = utf8 */;
|
||||||
CREATE TABLE `ipintel` (
|
CREATE TABLE `ipintel_whitelist` (
|
||||||
`ip` int(10) unsigned NOT NULL,
|
`ckey` varchar(32) NOT NULL,
|
||||||
`date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
|
`admin_ckey` varchar(32) NOT NULL,
|
||||||
`intel` double NOT NULL DEFAULT '0',
|
PRIMARY KEY (`ckey`)
|
||||||
PRIMARY KEY (`ip`),
|
|
||||||
KEY `idx_ipintel` (`ip`,`intel`,`date`)
|
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|
||||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -214,6 +214,19 @@ CREATE TABLE `SS13_ipintel` (
|
|||||||
KEY `idx_ipintel` (`ip`,`intel`,`date`)
|
KEY `idx_ipintel` (`ip`,`intel`,`date`)
|
||||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|
||||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||||
|
--
|
||||||
|
-- Table structure for table `ipintel_whitelist`
|
||||||
|
--
|
||||||
|
|
||||||
|
DROP TABLE IF EXISTS `SS13_ipintel_whitelist`;
|
||||||
|
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||||
|
/*!40101 SET character_set_client = utf8 */;
|
||||||
|
CREATE TABLE `SS13_ipintel_whitelist` (
|
||||||
|
`ckey` varchar(32) NOT NULL,
|
||||||
|
`admin_ckey` varchar(32) NOT NULL,
|
||||||
|
PRIMARY KEY (`ckey`)
|
||||||
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|
||||||
|
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||||
|
|
||||||
--
|
--
|
||||||
-- Table structure for table `SS13_legacy_population`
|
-- Table structure for table `SS13_legacy_population`
|
||||||
|
|||||||
Reference in New Issue
Block a user