mirror of
https://github.com/phpbb/phpbb.git
synced 2025-02-24 20:13:22 +01:00
Merge remote-tracking branch 'naderman/ticket/10213' into develop-olympus
* naderman/ticket/10213: [ticket/10213] Update install schema with shorter index names.
This commit is contained in:
commit
7cc45ee0d5
@ -643,7 +643,7 @@ foreach ($supported_dbms as $dbms)
|
||||
|
||||
if (strlen($table_name . $key_name) > 30)
|
||||
{
|
||||
trigger_error("Index name '$key_name' on table '$table_name' is too long. The maximum is 30 characters.", E_USER_ERROR);
|
||||
trigger_error("Index name '${table_name}_$key_name' on table '$table_name' is too long. The maximum is 30 characters.", E_USER_ERROR);
|
||||
}
|
||||
|
||||
switch ($dbms)
|
||||
@ -1234,9 +1234,9 @@ function get_schema_struct()
|
||||
),
|
||||
'PRIMARY_KEY' => 'attempt_id',
|
||||
'KEYS' => array(
|
||||
'attempt_ip' => array('INDEX', array('attempt_ip', 'attempt_time')),
|
||||
'attempt_forwarded_for' => array('INDEX', array('attempt_forwarded_for', 'attempt_time')),
|
||||
'attempt_time' => array('INDEX', array('attempt_time')),
|
||||
'att_ip' => array('INDEX', array('attempt_ip', 'attempt_time')),
|
||||
'att_for' => array('INDEX', array('attempt_forwarded_for', 'attempt_time')),
|
||||
'att_time' => array('INDEX', array('attempt_time')),
|
||||
'user_id' => array('INDEX', 'user_id'),
|
||||
),
|
||||
);
|
||||
|
@ -559,9 +559,9 @@ CREATE TABLE phpbb_login_attempts (
|
||||
|
||||
ALTER TABLE phpbb_login_attempts ADD PRIMARY KEY (attempt_id);;
|
||||
|
||||
CREATE INDEX phpbb_login_attempts_attempt_ip ON phpbb_login_attempts(attempt_ip, attempt_time);;
|
||||
CREATE INDEX phpbb_login_attempts_attempt_forwarded_for ON phpbb_login_attempts(attempt_forwarded_for, attempt_time);;
|
||||
CREATE INDEX phpbb_login_attempts_attempt_time ON phpbb_login_attempts(attempt_time);;
|
||||
CREATE INDEX phpbb_login_attempts_att_ip ON phpbb_login_attempts(attempt_ip, attempt_time);;
|
||||
CREATE INDEX phpbb_login_attempts_att_for ON phpbb_login_attempts(attempt_forwarded_for, attempt_time);;
|
||||
CREATE INDEX phpbb_login_attempts_att_time ON phpbb_login_attempts(attempt_time);;
|
||||
CREATE INDEX phpbb_login_attempts_user_id ON phpbb_login_attempts(user_id);;
|
||||
|
||||
CREATE GENERATOR phpbb_login_attempts_gen;;
|
||||
|
@ -671,13 +671,13 @@ ALTER TABLE [phpbb_login_attempts] WITH NOCHECK ADD
|
||||
) ON [PRIMARY]
|
||||
GO
|
||||
|
||||
CREATE INDEX [attempt_ip] ON [phpbb_login_attempts]([attempt_ip], [attempt_time]) ON [PRIMARY]
|
||||
CREATE INDEX [att_ip] ON [phpbb_login_attempts]([attempt_ip], [attempt_time]) ON [PRIMARY]
|
||||
GO
|
||||
|
||||
CREATE INDEX [attempt_forwarded_for] ON [phpbb_login_attempts]([attempt_forwarded_for], [attempt_time]) ON [PRIMARY]
|
||||
CREATE INDEX [att_for] ON [phpbb_login_attempts]([attempt_forwarded_for], [attempt_time]) ON [PRIMARY]
|
||||
GO
|
||||
|
||||
CREATE INDEX [attempt_time] ON [phpbb_login_attempts]([attempt_time]) ON [PRIMARY]
|
||||
CREATE INDEX [att_time] ON [phpbb_login_attempts]([attempt_time]) ON [PRIMARY]
|
||||
GO
|
||||
|
||||
CREATE INDEX [user_id] ON [phpbb_login_attempts]([user_id]) ON [PRIMARY]
|
||||
|
@ -380,9 +380,9 @@ CREATE TABLE phpbb_login_attempts (
|
||||
username blob NOT NULL,
|
||||
username_clean blob NOT NULL,
|
||||
PRIMARY KEY (attempt_id),
|
||||
KEY attempt_ip (attempt_ip, attempt_time),
|
||||
KEY attempt_forwarded_for (attempt_forwarded_for, attempt_time),
|
||||
KEY attempt_time (attempt_time),
|
||||
KEY att_ip (attempt_ip, attempt_time),
|
||||
KEY att_for (attempt_forwarded_for, attempt_time),
|
||||
KEY att_time (attempt_time),
|
||||
KEY user_id (user_id)
|
||||
);
|
||||
|
||||
|
@ -380,9 +380,9 @@ CREATE TABLE phpbb_login_attempts (
|
||||
username varchar(255) DEFAULT '0' NOT NULL,
|
||||
username_clean varchar(255) DEFAULT '0' NOT NULL,
|
||||
PRIMARY KEY (attempt_id),
|
||||
KEY attempt_ip (attempt_ip, attempt_time),
|
||||
KEY attempt_forwarded_for (attempt_forwarded_for, attempt_time),
|
||||
KEY attempt_time (attempt_time),
|
||||
KEY att_ip (attempt_ip, attempt_time),
|
||||
KEY att_for (attempt_forwarded_for, attempt_time),
|
||||
KEY att_time (attempt_time),
|
||||
KEY user_id (user_id)
|
||||
) CHARACTER SET `utf8` COLLATE `utf8_bin`;
|
||||
|
||||
|
@ -756,11 +756,11 @@ CREATE TABLE phpbb_login_attempts (
|
||||
)
|
||||
/
|
||||
|
||||
CREATE INDEX phpbb_login_attempts_attempt_ip ON phpbb_login_attempts (attempt_ip, attempt_time)
|
||||
CREATE INDEX phpbb_login_attempts_att_ip ON phpbb_login_attempts (attempt_ip, attempt_time)
|
||||
/
|
||||
CREATE INDEX phpbb_login_attempts_attempt_forwarded_for ON phpbb_login_attempts (attempt_forwarded_for, attempt_time)
|
||||
CREATE INDEX phpbb_login_attempts_att_for ON phpbb_login_attempts (attempt_forwarded_for, attempt_time)
|
||||
/
|
||||
CREATE INDEX phpbb_login_attempts_attempt_time ON phpbb_login_attempts (attempt_time)
|
||||
CREATE INDEX phpbb_login_attempts_att_time ON phpbb_login_attempts (attempt_time)
|
||||
/
|
||||
CREATE INDEX phpbb_login_attempts_user_id ON phpbb_login_attempts (user_id)
|
||||
/
|
||||
|
@ -541,9 +541,9 @@ CREATE TABLE phpbb_login_attempts (
|
||||
PRIMARY KEY (attempt_id)
|
||||
);
|
||||
|
||||
CREATE INDEX phpbb_login_attempts_attempt_ip ON phpbb_login_attempts (attempt_ip, attempt_time);
|
||||
CREATE INDEX phpbb_login_attempts_attempt_forwarded_for ON phpbb_login_attempts (attempt_forwarded_for, attempt_time);
|
||||
CREATE INDEX phpbb_login_attempts_attempt_time ON phpbb_login_attempts (attempt_time);
|
||||
CREATE INDEX phpbb_login_attempts_att_ip ON phpbb_login_attempts (attempt_ip, attempt_time);
|
||||
CREATE INDEX phpbb_login_attempts_att_for ON phpbb_login_attempts (attempt_forwarded_for, attempt_time);
|
||||
CREATE INDEX phpbb_login_attempts_att_time ON phpbb_login_attempts (attempt_time);
|
||||
CREATE INDEX phpbb_login_attempts_user_id ON phpbb_login_attempts (user_id);
|
||||
|
||||
/*
|
||||
|
@ -369,9 +369,9 @@ CREATE TABLE phpbb_login_attempts (
|
||||
username_clean varchar(255) NOT NULL DEFAULT '0'
|
||||
);
|
||||
|
||||
CREATE INDEX phpbb_login_attempts_attempt_ip ON phpbb_login_attempts (attempt_ip, attempt_time);
|
||||
CREATE INDEX phpbb_login_attempts_attempt_forwarded_for ON phpbb_login_attempts (attempt_forwarded_for, attempt_time);
|
||||
CREATE INDEX phpbb_login_attempts_attempt_time ON phpbb_login_attempts (attempt_time);
|
||||
CREATE INDEX phpbb_login_attempts_att_ip ON phpbb_login_attempts (attempt_ip, attempt_time);
|
||||
CREATE INDEX phpbb_login_attempts_att_for ON phpbb_login_attempts (attempt_forwarded_for, attempt_time);
|
||||
CREATE INDEX phpbb_login_attempts_att_time ON phpbb_login_attempts (attempt_time);
|
||||
CREATE INDEX phpbb_login_attempts_user_id ON phpbb_login_attempts (user_id);
|
||||
|
||||
# Table: 'phpbb_moderator_cache'
|
||||
|
Loading…
x
Reference in New Issue
Block a user