Account actions rework on ip (Use single column for IP - VARCHAR(45)) (#289)

* Account actions rework on ip (Use single column for IP - VARCHAR(45))

* No foreach needed here
This commit is contained in:
Slawomir Boczek
2025-03-09 21:18:12 +01:00
committed by GitHub
parent 3c1210fefa
commit 7312383f73
7 changed files with 45 additions and 30 deletions

View File

@@ -2,12 +2,12 @@ SET @myaac_database_version = 43;
CREATE TABLE `myaac_account_actions`
(
`id` INT(11) NOT NULL AUTO_INCREMENT,
`account_id` INT(11) NOT NULL,
`ip` INT(10) UNSIGNED NOT NULL DEFAULT 0,
`ipv6` BINARY(16) NOT NULL DEFAULT 0,
`ip` VARCHAR(45) NOT NULL DEFAULT '',
`date` INT(11) NOT NULL DEFAULT 0,
`action` VARCHAR(255) NOT NULL DEFAULT '',
KEY (`account_id`)
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARACTER SET=utf8mb4;
CREATE TABLE `myaac_admin_menu`