mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
Merge branch 'develop-olympus' into develop
* develop-olympus: [ticket/12210] dbtools::sql_create_table incorrectly throws error related to auto-increment length on non auto-increment fields
This commit is contained in:
commit
7a21d99b9b
1 changed files with 1 additions and 1 deletions
|
@ -492,7 +492,7 @@ class tools
|
||||||
// here lies an array, filled with information compiled on the column's data
|
// here lies an array, filled with information compiled on the column's data
|
||||||
$prepared_column = $this->sql_prepare_column_data($table_name, $column_name, $column_data);
|
$prepared_column = $this->sql_prepare_column_data($table_name, $column_name, $column_data);
|
||||||
|
|
||||||
if (isset($prepared_column['auto_increment']) && strlen($column_name) > 26) // "${column_name}_gen"
|
if (isset($prepared_column['auto_increment']) && $prepared_column['auto_increment'] && strlen($column_name) > 26) // "${column_name}_gen"
|
||||||
{
|
{
|
||||||
trigger_error("Index name '${column_name}_gen' on table '$table_name' is too long. The maximum auto increment column length is 26 characters.", E_USER_ERROR);
|
trigger_error("Index name '${column_name}_gen' on table '$table_name' is too long. The maximum auto increment column length is 26 characters.", E_USER_ERROR);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue