mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-01-31 16:09:55 +00:00
WIP: basic server, no features
This commit is contained in:
6
migrations/dlu/mysql/27_login_tracking.sql
Normal file
6
migrations/dlu/mysql/27_login_tracking.sql
Normal file
@@ -0,0 +1,6 @@
|
||||
-- Migration: Add login tracking columns to accounts table
|
||||
-- Adds fields for tracking login attempts, lockouts, and last login
|
||||
|
||||
ALTER TABLE accounts ADD COLUMN IF NOT EXISTS failed_attempts INT NOT NULL DEFAULT 0;
|
||||
ALTER TABLE accounts ADD COLUMN IF NOT EXISTS lockout_time DATETIME NULL DEFAULT NULL;
|
||||
ALTER TABLE accounts ADD COLUMN IF NOT EXISTS last_login DATETIME NULL DEFAULT NULL;
|
||||
6
migrations/dlu/sqlite/10_login_tracking.sql
Normal file
6
migrations/dlu/sqlite/10_login_tracking.sql
Normal file
@@ -0,0 +1,6 @@
|
||||
/* Migration: Add login tracking columns to accounts table */
|
||||
/* Adds fields for tracking login attempts, lockouts, and last login */
|
||||
|
||||
ALTER TABLE accounts ADD COLUMN failed_attempts INTEGER NOT NULL DEFAULT 0;
|
||||
ALTER TABLE accounts ADD COLUMN lockout_time DATETIME DEFAULT NULL;
|
||||
ALTER TABLE accounts ADD COLUMN last_login DATETIME DEFAULT NULL;
|
||||
Reference in New Issue
Block a user