Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 27 additions & 1 deletion Sahtout/SQL/Readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ means thats inside the acore_auth database

⚠️ Important Database Migration Notice ⚠️

OPTION 1
The new sahtout_site SQL file will recreate the database and all tables.
That means it will delete your old structure.

Expand All @@ -19,4 +20,29 @@ To avoid losing your data:

3.Manually re-insert or import your old data into the new database.

👉 Without step 1, all your data will be lost when applying the new version.
OPTION 2 create this tables
failed_logins Table
CREATE TABLE IF NOT EXISTS `failed_logins` (
`id` int NOT NULL AUTO_INCREMENT,
`ip_address` varchar(45) NOT NULL,
`username` varchar(255) DEFAULT NULL,
`attempts` int DEFAULT '0',
`last_attempt` int NOT NULL,
`block_until` int DEFAULT NULL,
PRIMARY KEY (`id`),
KEY `idx_ip_address` (`ip_address`),
KEY `idx_last_attempt` (`last_attempt`)
) ENGINE=InnoDB DEFAULT CHARSET=utf16;

reset_attempts Table
CREATE TABLE IF NOT EXISTS `reset_attempts` (
`id` int NOT NULL AUTO_INCREMENT,
`ip_address` varchar(45) NOT NULL,
`email` varchar(255) DEFAULT NULL,
`attempts` int NOT NULL DEFAULT '0',
`last_attempt` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`blocked_until` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `idx_email` (`email`),
KEY `idx_ip_address` (`ip_address`)
) ENGINE=InnoDB DEFAULT CHARSET=utf16;