diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2014-03-04 11:22:55 +0100 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2014-03-05 21:38:57 +0100 |
commit | 2e5106aae1bfe83ad8b2336a6d519da5aabc59d2 (patch) | |
tree | ece483e4a0e00f08e426570bb51140273b39f03b /phpBB/phpbb/db/migration/data/v310/profilefield_yahoo.php | |
parent | 71354ef185e003319cdc9031928054fdb2f0b970 (diff) | |
download | forums-2e5106aae1bfe83ad8b2336a6d519da5aabc59d2.tar forums-2e5106aae1bfe83ad8b2336a6d519da5aabc59d2.tar.gz forums-2e5106aae1bfe83ad8b2336a6d519da5aabc59d2.tar.bz2 forums-2e5106aae1bfe83ad8b2336a6d519da5aabc59d2.tar.xz forums-2e5106aae1bfe83ad8b2336a6d519da5aabc59d2.zip |
[ticket/12237] Convert yahoo messanger to custom profile field
PHPBB3-12237
Diffstat (limited to 'phpBB/phpbb/db/migration/data/v310/profilefield_yahoo.php')
-rw-r--r-- | phpBB/phpbb/db/migration/data/v310/profilefield_yahoo.php | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/phpBB/phpbb/db/migration/data/v310/profilefield_yahoo.php b/phpBB/phpbb/db/migration/data/v310/profilefield_yahoo.php new file mode 100644 index 0000000000..808aec8099 --- /dev/null +++ b/phpBB/phpbb/db/migration/data/v310/profilefield_yahoo.php @@ -0,0 +1,51 @@ +<?php +/** +* +* @package migration +* @copyright (c) 2014 phpBB Group +* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2 +* +*/ + +namespace phpbb\db\migration\data\v310; + +class profilefield_yahoo extends \phpbb\db\migration\profilefield_base_migration +{ + static public function depends_on() + { + return array( + '\phpbb\db\migration\data\v310\profilefield_wlm_cleanup', + ); + } + + protected $profilefield_name = 'phpbb_yahoo'; + + protected $profilefield_database_type = array('VCHAR', ''); + + protected $profilefield_data = array( + 'field_name' => 'phpbb_yahoo', + 'field_type' => 'profilefields.type.string', + 'field_ident' => 'phpbb_yahoo', + 'field_length' => '40', + 'field_minlen' => '5', + 'field_maxlen' => '255', + 'field_novalue' => '', + 'field_default_value' => '', + 'field_validation' => '.*', + 'field_required' => 0, + 'field_show_novalue' => 0, + 'field_show_on_reg' => 0, + 'field_show_on_pm' => 1, + 'field_show_on_vt' => 1, + 'field_show_on_ml' => 0, + 'field_show_profile' => 1, + 'field_hide' => 0, + 'field_no_view' => 0, + 'field_active' => 1, + 'field_is_contact' => 1, + 'field_contact_desc' => 'SEND_YIM_MESSAGE', + 'field_contact_url' => 'http://edit.yahoo.com/config/send_webmesg?.target=%s&.src=pg', + ); + + protected $user_column_name = 'user_yim'; +} |