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

This commit is contained in:
slawkens
2025-02-27 22:04:44 +01:00
parent 464492d826
commit 58feff50c6
7 changed files with 46 additions and 27 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`