Code: Select all
Index name 'phpbb1_profile_views_profile_user_id' on table 'phpbb1_profile_views' is too long. The maximum is 24 characters.
I got this error, is there anyway to shorten the index name ??
Code: Select all
Index name 'phpbb1_profile_views_profile_user_id' on table 'phpbb1_profile_views' is too long. The maximum is 24 characters.
lefty74 wrote:i am afraid you will have to wait until i have had time to change the table and field lengths and update the install file.
lefty74 wrote:no idea how long, if you really want to use that mod, you could change in includes/db/db_tools.php
line 1414, change 30 to 130 = if (strlen($column_name) > 130)
line 2060, change 24 to 124 = if (strlen($table_name . $index_name) - strlen($table_prefix) > 124)
line 2097, change 24 to 124 = if (strlen($table_name . $index_name) - strlen($table_prefix) > 124)
then run the install file
make sure after the install file ran to change these values back to their original numbers.
Cyber_Punk wrote:lefty74 wrote:i am afraid you will have to wait until i have had time to change the table and field lengths and update the install file.
Any guess on how long that would take would really like to use this mod
Code: Select all
Table Name: phpbb_foobarmod_foobar_baz
Index Name: idx_foo
idx_foo
created. Code: Select all
Table Name: phpbb_foobarmod_foobar_baz
Index Name: idx_foo
Code: Select all
Table Name: phpbb_foobarmod_foobar_baz
Index Name: idx_foo
Code: Select all
Table Name: phpbb_foobarmod_foobar_baz
Index Name: phpbb_foobarmod_foobar_baz_idx_foo
phpbb_foobarmod_foobar_baz_idx_foo
) and then bombs out on its own screw-up when it hits the "compatibility" restriction. Well done! phpbb_fbm_fb_b
instead of phpbb_foobarmod_foobar_baz
Not a member? Contact an {0}Administrator{1} to request an account.
lefty74 wrote:no idea how long, if you really want to use that mod, you could change in includes/db/db_tools.php
line 1414, change 30 to 130 = if (strlen($column_name) > 130)
line 2060, change 24 to 124 = if (strlen($table_name . $index_name) - strlen($table_prefix) > 124)
line 2097, change 24 to 124 = if (strlen($table_name . $index_name) - strlen($table_prefix) > 124)
then run the install file
make sure after the install file ran to change these values back to their original numbers.
includes/db/dbtools.php
Code: Select all
$max_length = $table_prefix + 24;
Code: Select all
$max_length = strlen($table_prefix) + 24;
Code: Select all
$max_length = $table_prefix + 24;
Code: Select all
$max_length = strlen($table_prefix) + 24;
lefty74 wrote:no idea how long, if you really want to use that mod, you could change in includes/db/db_tools.php
line 1414, change 30 to 130 = if (strlen($column_name) > 130)
line 2060, change 24 to 124 = if (strlen($table_name . $index_name) - strlen($table_prefix) > 124)
line 2097, change 24 to 124 = if (strlen($table_name . $index_name) - strlen($table_prefix) > 124)
then run the install file
make sure after the install file ran to change these values back to their original numbers.