aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/db
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2014-12-27 14:17:03 +0100
committerJoas Schilling <nickvergessen@gmx.de>2014-12-27 14:17:03 +0100
commitdbbcf3f372dcac1f429f0b6e25237cc824741f2a (patch)
tree1b1fc453353961f78f524f32d938e5cab17605dc /phpBB/phpbb/db
parent7b0809414f74d9f64f675fdc081597addf6ef257 (diff)
parentb0f1a0f4bbedf496b15069ca151eca44292993eb (diff)
downloadforums-dbbcf3f372dcac1f429f0b6e25237cc824741f2a.tar
forums-dbbcf3f372dcac1f429f0b6e25237cc824741f2a.tar.gz
forums-dbbcf3f372dcac1f429f0b6e25237cc824741f2a.tar.bz2
forums-dbbcf3f372dcac1f429f0b6e25237cc824741f2a.tar.xz
forums-dbbcf3f372dcac1f429f0b6e25237cc824741f2a.zip
Merge branch 'develop-ascraeus' into develop
Diffstat (limited to 'phpBB/phpbb/db')
-rw-r--r--phpBB/phpbb/db/migration/data/v31x/profilefield_yahoo_update_url.php38
1 files changed, 38 insertions, 0 deletions
diff --git a/phpBB/phpbb/db/migration/data/v31x/profilefield_yahoo_update_url.php b/phpBB/phpbb/db/migration/data/v31x/profilefield_yahoo_update_url.php
new file mode 100644
index 0000000000..4df9083bdf
--- /dev/null
+++ b/phpBB/phpbb/db/migration/data/v31x/profilefield_yahoo_update_url.php
@@ -0,0 +1,38 @@
+<?php
+/**
+*
+* This file is part of the phpBB Forum Software package.
+*
+* @copyright (c) phpBB Limited <https://www.phpbb.com>
+* @license GNU General Public License, version 2 (GPL-2.0)
+*
+* For full copyright and license information, please see
+* the docs/CREDITS.txt file.
+*
+*/
+
+namespace phpbb\db\migration\data\v31x;
+
+class profilefield_yahoo_update_url extends \phpbb\db\migration\migration
+{
+ static public function depends_on()
+ {
+ return array('\phpbb\db\migration\data\v31x\v312');
+ }
+
+ public function update_data()
+ {
+ return array(
+ array('custom', array(array($this, 'update_contact_url'))),
+ );
+ }
+
+ public function update_contact_url()
+ {
+ $sql = 'UPDATE ' . $this->table_prefix . "profile_fields
+ SET field_contact_url = 'ymsgr:sendim?%s'
+ WHERE field_name = 'phpbb_yahoo'
+ AND field_contact_url = 'http://edit.yahoo.com/config/send_webmesg?.target=%s&amp;.src=pg'";
+ $this->sql_query($sql);
+ }
+}