[ticket/12786] Extend profilefield_base_migration.php class

If extensions authors will use profilefield_base_migration.php
class as base class for creation of CPFs, the class need to be
extended a bit.

At the moment there are two issues with it:

It does not create entries for PROFILE_FIELDS_LANG_TABLE
(as it can't know what fields to create).

The migration is not "cleaning" the DBMS after purging
the extension and leaves everything except the CPF column.

Adding profilefield_language_data

PHPBB3-12786
This commit is contained in:
Stanislav Atanasov 2014-06-29 11:48:06 +03:00
parent 404c2f1144
commit 564924e876

View file

@ -21,6 +21,22 @@ abstract class profilefield_base_migration extends \phpbb\db\migration\migration
protected $profilefield_data; protected $profilefield_data;
/*Language data should be in array -> each language_data in seaprte key
* array(
* '1' => array(
* 'option_id' => value,
* 'field_type' => value,
* 'lang_value' => value,
* ),
* '2' => array(
* 'option_id' => value,
* 'field_type' => value,
* 'lang_value' => value,
* ),
* )
*/
protected $profilefield_language_data;
protected $user_column_name; protected $user_column_name;
public function effectively_installed() public function effectively_installed()