mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-11 10:11:09 +00:00
Fix IPs in telemetry_connections not being unsigned (#63573)
About The Pull Request Fixes IPs not being unsigned, causing problems where they get capped if the IP is too big. Not tested.
This commit is contained in:
@@ -4,12 +4,20 @@ Make sure to also update `DB_MAJOR_VERSION` and `DB_MINOR_VERSION`, which can be
|
||||
|
||||
The latest database version is 5.21; The query to update the schema revision table is:
|
||||
|
||||
INSERT INTO `schema_revision` (`major`, `minor`) VALUES (5, 21);
|
||||
INSERT INTO `schema_revision` (`major`, `minor`) VALUES (5, 22);
|
||||
or
|
||||
INSERT INTO `SS13_schema_revision` (`major`, `minor`) VALUES (5, 21);
|
||||
INSERT INTO `SS13_schema_revision` (`major`, `minor`) VALUES (5, 22);
|
||||
|
||||
In any query remember to add a prefix to the table names if you use one.
|
||||
|
||||
Version 5.22, 22 December 2021, by Mothblocks
|
||||
Fixes a bug in `telemetry_connections` that limited the range of IPs.
|
||||
|
||||
```
|
||||
ALTER TABLE `telemetry_connections` MODIFY COLUMN `address` INT(10) UNSIGNED NOT NULL;
|
||||
```
|
||||
-----------------------------------------------------
|
||||
|
||||
Version 5.21, 15 December 2021, by Mothblocks
|
||||
Adds `telemetry_connections` table for tracking tgui telemetry.
|
||||
|
||||
|
||||
@@ -685,7 +685,7 @@ CREATE TABLE `telemetry_connections` (
|
||||
`id` INT NOT NULL AUTO_INCREMENT,
|
||||
`ckey` VARCHAR(32) NOT NULL,
|
||||
`telemetry_ckey` VARCHAR(32) NOT NULL,
|
||||
`address` INT(10) NOT NULL,
|
||||
`address` INT(10) UNSIGNED NOT NULL,
|
||||
`computer_id` VARCHAR(32) NOT NULL,
|
||||
`first_round_id` INT(11) UNSIGNED NULL,
|
||||
`latest_round_id` INT(11) UNSIGNED NULL,
|
||||
|
||||
@@ -685,7 +685,7 @@ CREATE TABLE `SS13_telemetry_connections` (
|
||||
`id` INT NOT NULL AUTO_INCREMENT,
|
||||
`ckey` VARCHAR(32) NOT NULL,
|
||||
`telemetry_ckey` VARCHAR(32) NOT NULL,
|
||||
`address` INT(10) NOT NULL,
|
||||
`address` INT(10) UNSIGNED NOT NULL,
|
||||
`computer_id` VARCHAR(32) NOT NULL,
|
||||
`first_round_id` INT(11) UNSIGNED NULL,
|
||||
`latest_round_id` INT(11) UNSIGNED NULL,
|
||||
|
||||
Reference in New Issue
Block a user