mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-17 16:58:51 +00:00
[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:
parent
404c2f1144
commit
564924e876
1 changed files with 16 additions and 0 deletions
|
@ -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()
|
||||||
|
|
Loading…
Add table
Reference in a new issue