diff options
Diffstat (limited to 'phpBB/includes/db/migration/v306rc3.php')
| -rw-r--r-- | phpBB/includes/db/migration/v306rc3.php | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/phpBB/includes/db/migration/v306rc3.php b/phpBB/includes/db/migration/v306rc3.php new file mode 100644 index 0000000000..b3bd49eafa --- /dev/null +++ b/phpBB/includes/db/migration/v306rc3.php @@ -0,0 +1,31 @@ +<?php +/** +* +* @package migration +* @copyright (c) 2012 phpBB Group +* @license http://opensource.org/licenses/gpl-license.php GNU Public License v2 +* +*/ + +class phpbb_db_migration_v306rc3 extends phpbb_db_migration +{ + function depends_on() + { + return array('phpbb_db_migration_v306rc2'); + } + + function update_schema() + { + return array(); + } + + function update_data() + { + // Update the Custom Profile Fields based on previous settings to the new format + $sql = 'UPDATE ' . PROFILE_FIELDS_TABLE . ' + SET field_show_on_vt = 1 + WHERE field_hide = 0 + AND (field_required = 1 OR field_show_on_reg = 1 OR field_show_profile = 1)'; + _sql($sql, $errored, $error_ary); + } +} |
