mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/12765] Execute query directly from db tools
PHPBB3-12765
This commit is contained in:
parent
03040de75a
commit
51f534c82e
1 changed files with 2 additions and 4 deletions
|
@ -881,10 +881,8 @@ class acp_profile
|
|||
{
|
||||
$field_ident = 'pf_' . $field_ident;
|
||||
|
||||
$db_tools = new \phpbb\db\tools($db, true);
|
||||
$field_intent_sql = $db_tools->sql_column_add(PROFILE_FIELDS_DATA_TABLE, $field_ident, array($profile_field->get_database_column_type(), null));
|
||||
|
||||
$profile_sql[] = $field_intent_sql[0];
|
||||
$db_tools = $phpbb_container->get('dbal.tools');
|
||||
$db_tools->sql_column_add(PROFILE_FIELDS_DATA_TABLE, $field_ident, array($profile_field->get_database_column_type(), null));
|
||||
}
|
||||
|
||||
$sql_ary = array(
|
||||
|
|
Loading…
Add table
Reference in a new issue