mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-18 09:18:52 +00:00
[prep-release-3.2.0-a1] Add migration for 3.2.0-a1
This commit is contained in:
parent
f8236cc907
commit
2144f35e9d
10 changed files with 116 additions and 5 deletions
|
@ -15,6 +15,13 @@ namespace phpbb\db\migration\data\v320;
|
||||||
|
|
||||||
class allowed_schemes_links extends \phpbb\db\migration\migration
|
class allowed_schemes_links extends \phpbb\db\migration\migration
|
||||||
{
|
{
|
||||||
|
static public function depends_on()
|
||||||
|
{
|
||||||
|
return array(
|
||||||
|
'\phpbb\db\migration\data\v320\dev',
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
public function update_data()
|
public function update_data()
|
||||||
{
|
{
|
||||||
return array(
|
return array(
|
||||||
|
|
|
@ -29,7 +29,9 @@ class announce_global_permission extends \phpbb\db\migration\migration
|
||||||
|
|
||||||
static public function depends_on()
|
static public function depends_on()
|
||||||
{
|
{
|
||||||
return array('\phpbb\db\migration\data\v310\rc2');
|
return array(
|
||||||
|
'\phpbb\db\migration\data\v320\dev',
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function update_data()
|
public function update_data()
|
||||||
|
|
36
phpBB/phpbb/db/migration/data/v320/dev.php
Normal file
36
phpBB/phpbb/db/migration/data/v320/dev.php
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
<?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\v320;
|
||||||
|
|
||||||
|
class dev extends \phpbb\db\migration\container_aware_migration
|
||||||
|
{
|
||||||
|
public function effectively_installed()
|
||||||
|
{
|
||||||
|
return version_compare($this->config['version'], '3.2.0-dev', '>=');
|
||||||
|
}
|
||||||
|
|
||||||
|
static public function depends_on()
|
||||||
|
{
|
||||||
|
return array(
|
||||||
|
'\phpbb\db\migration\data\v31x\v316',
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function update_data()
|
||||||
|
{
|
||||||
|
return array(
|
||||||
|
array('config.update', array('version', '3.2.0-dev')),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
|
@ -15,6 +15,13 @@ namespace phpbb\db\migration\data\v320;
|
||||||
|
|
||||||
class font_awesome_update extends \phpbb\db\migration\migration
|
class font_awesome_update extends \phpbb\db\migration\migration
|
||||||
{
|
{
|
||||||
|
static public function depends_on()
|
||||||
|
{
|
||||||
|
return array(
|
||||||
|
'\phpbb\db\migration\data\v320\dev',
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
public function effectively_installed()
|
public function effectively_installed()
|
||||||
{
|
{
|
||||||
return isset($this->config['load_font_awesome_url']);
|
return isset($this->config['load_font_awesome_url']);
|
||||||
|
|
|
@ -17,7 +17,9 @@ class icons_alt extends \phpbb\db\migration\migration
|
||||||
{
|
{
|
||||||
static public function depends_on()
|
static public function depends_on()
|
||||||
{
|
{
|
||||||
return array('\phpbb\db\migration\data\v310\dev');
|
return array(
|
||||||
|
'\phpbb\db\migration\data\v320\dev',
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function update_schema()
|
public function update_schema()
|
||||||
|
|
|
@ -17,7 +17,9 @@ class log_post_id extends \phpbb\db\migration\migration
|
||||||
{
|
{
|
||||||
static public function depends_on()
|
static public function depends_on()
|
||||||
{
|
{
|
||||||
return array('\phpbb\db\migration\data\v310\dev');
|
return array(
|
||||||
|
'\phpbb\db\migration\data\v320\dev',
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function update_schema()
|
public function update_schema()
|
||||||
|
|
|
@ -17,7 +17,9 @@ class notifications_board extends \phpbb\db\migration\migration
|
||||||
{
|
{
|
||||||
static public function depends_on()
|
static public function depends_on()
|
||||||
{
|
{
|
||||||
return array('\phpbb\db\migration\data\v310\notifications');
|
return array(
|
||||||
|
'\phpbb\db\migration\data\v320\dev',
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function update_data()
|
public function update_data()
|
||||||
|
|
|
@ -21,6 +21,13 @@ class remove_outdated_media extends \phpbb\db\migration\migration
|
||||||
ATTACHMENT_CATEGORY_QUICKTIME,
|
ATTACHMENT_CATEGORY_QUICKTIME,
|
||||||
);
|
);
|
||||||
|
|
||||||
|
static public function depends_on()
|
||||||
|
{
|
||||||
|
return array(
|
||||||
|
'\phpbb\db\migration\data\v320\dev',
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
public function update_data()
|
public function update_data()
|
||||||
{
|
{
|
||||||
return array(
|
return array(
|
||||||
|
|
|
@ -17,7 +17,9 @@ class remove_profilefield_wlm extends \phpbb\db\migration\migration
|
||||||
{
|
{
|
||||||
static public function depends_on()
|
static public function depends_on()
|
||||||
{
|
{
|
||||||
return array('\phpbb\db\migration\data\v310\profilefield_wlm');
|
return array(
|
||||||
|
'\phpbb\db\migration\data\v320\dev',
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function update_schema()
|
public function update_schema()
|
||||||
|
|
44
phpBB/phpbb/db/migration/data/v320/v320a1.php
Normal file
44
phpBB/phpbb/db/migration/data/v320/v320a1.php
Normal file
|
@ -0,0 +1,44 @@
|
||||||
|
<?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\v320;
|
||||||
|
|
||||||
|
class v320a1 extends \phpbb\db\migration\container_aware_migration
|
||||||
|
{
|
||||||
|
public function effectively_installed()
|
||||||
|
{
|
||||||
|
return version_compare($this->config['version'], '3.2.0-a1', '>=');
|
||||||
|
}
|
||||||
|
|
||||||
|
static public function depends_on()
|
||||||
|
{
|
||||||
|
return array(
|
||||||
|
'\phpbb\db\migration\data\v320\dev',
|
||||||
|
'\phpbb\db\migration\data\v320\allowed_schemes_links',
|
||||||
|
'\phpbb\db\migration\data\v320\announce_global_permission',
|
||||||
|
'\phpbb\db\migration\data\v320\remove_profilefield_wlm',
|
||||||
|
'\phpbb\db\migration\data\v320\font_awesome_update',
|
||||||
|
'\phpbb\db\migration\data\v320\icons_alt',
|
||||||
|
'\phpbb\db\migration\data\v320\log_post_id',
|
||||||
|
'\phpbb\db\migration\data\v320\remove_outdated_media',
|
||||||
|
'\phpbb\db\migration\data\v320\notifications_board',
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function update_data()
|
||||||
|
{
|
||||||
|
return array(
|
||||||
|
array('config.update', array('version', '3.2.0-dev')),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue