Fix verification_attempts table definition in init-db.sql to match running schema and php queries
This commit is contained in:
+5
-6
@@ -43,14 +43,13 @@ CREATE TABLE users (
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
|
||||
CREATE TABLE verification_attempts (
|
||||
id INT UNSIGNED NOT NULL AUTO_INCREMENT,
|
||||
email VARCHAR(255) NOT NULL,
|
||||
attempts INT NOT NULL DEFAULT 1,
|
||||
code_hash VARCHAR(255) NOT NULL,
|
||||
expires_at DATETIME NOT NULL,
|
||||
attempts INT NOT NULL DEFAULT 0,
|
||||
last_attempt_at DATETIME NOT NULL,
|
||||
PRIMARY KEY (id),
|
||||
UNIQUE KEY uq_verification_attempts_email (email)
|
||||
locked_until DATETIME DEFAULT NULL,
|
||||
code_hash VARCHAR(128) DEFAULT NULL,
|
||||
expires_at DATETIME DEFAULT NULL,
|
||||
PRIMARY KEY (email)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
|
||||
-- Insert Admin and Manager demo accounts (Password: password)
|
||||
|
||||
Reference in New Issue
Block a user