mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[ticket/10325] move migration into a new file
PHPBB3-10325
This commit is contained in:
parent
00d5cde04e
commit
284011ebf2
2 changed files with 28 additions and 2 deletions
|
@ -84,8 +84,6 @@ class phpbb_db_migration_data_310_dev extends phpbb_db_migration
|
||||||
return array(
|
return array(
|
||||||
array('config.update', array('search_type', 'phpbb_search_' . $this->config['search_type'])),
|
array('config.update', array('search_type', 'phpbb_search_' . $this->config['search_type'])),
|
||||||
|
|
||||||
array('config.add', array('allow_password_reset', 1)),
|
|
||||||
|
|
||||||
array('config.add', array('fulltext_postgres_ts_name', 'simple')),
|
array('config.add', array('fulltext_postgres_ts_name', 'simple')),
|
||||||
array('config.add', array('fulltext_postgres_min_word_len', 4)),
|
array('config.add', array('fulltext_postgres_min_word_len', 4)),
|
||||||
array('config.add', array('fulltext_postgres_max_word_len', 254)),
|
array('config.add', array('fulltext_postgres_max_word_len', 254)),
|
||||||
|
|
28
phpBB/includes/db/migration/data/310/forgot_password.php
Normal file
28
phpBB/includes/db/migration/data/310/forgot_password.php
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @package migration
|
||||||
|
* @copyright (c) 2012 phpBB Group
|
||||||
|
* @license http://opensource.org/licenses/gpl-license.php GNU Public License v2
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
class phpbb_db_migration_data_310_forgot_password extends phpbb_db_migration
|
||||||
|
{
|
||||||
|
public function effectively_installed()
|
||||||
|
{
|
||||||
|
return isset($this->config['allow_password_reset']);
|
||||||
|
}
|
||||||
|
|
||||||
|
static public function depends_on()
|
||||||
|
{
|
||||||
|
return array('phpbb_db_migration_data_30x_3_0_11');
|
||||||
|
}
|
||||||
|
|
||||||
|
public function update_data()
|
||||||
|
{
|
||||||
|
return array(
|
||||||
|
array('config.add', array('allow_password_reset', 1)),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue