mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/16284] Add depends_on to classes
PHPBB3-16284
This commit is contained in:
parent
2b65ce123c
commit
6acdfab319
6 changed files with 42 additions and 0 deletions
|
@ -29,6 +29,13 @@ class add_storage_permission extends migration
|
|||
return !empty($a_storage_option_id);
|
||||
}
|
||||
|
||||
static public function depends_on()
|
||||
{
|
||||
return [
|
||||
'\phpbb\db\migration\data\v400\dev',
|
||||
];
|
||||
}
|
||||
|
||||
public function update_data()
|
||||
{
|
||||
return [
|
||||
|
|
|
@ -22,6 +22,13 @@ class extensions_composer extends migration
|
|||
return $this->config->offsetExists('exts_composer_repositories');
|
||||
}
|
||||
|
||||
static public function depends_on()
|
||||
{
|
||||
return [
|
||||
'\phpbb\db\migration\data\v400\dev',
|
||||
];
|
||||
}
|
||||
|
||||
public function update_data()
|
||||
{
|
||||
return [
|
||||
|
|
|
@ -22,6 +22,13 @@ class remove_attachment_download_mode extends migration
|
|||
return !$this->db_tools->sql_column_exists($this->tables['extension_groups'], 'download_mode');
|
||||
}
|
||||
|
||||
static public function depends_on()
|
||||
{
|
||||
return [
|
||||
'\phpbb\db\migration\data\v400\dev',
|
||||
];
|
||||
}
|
||||
|
||||
public function update_schema()
|
||||
{
|
||||
return [
|
||||
|
|
|
@ -23,6 +23,13 @@ class storage_attachment extends migration
|
|||
return $this->config->offsetExists('storage\\attachment\\provider');
|
||||
}
|
||||
|
||||
static public function depends_on()
|
||||
{
|
||||
return [
|
||||
'\phpbb\db\migration\data\v400\dev',
|
||||
];
|
||||
}
|
||||
|
||||
public function update_data()
|
||||
{
|
||||
return [
|
||||
|
|
|
@ -23,6 +23,13 @@ class storage_avatar extends migration
|
|||
return $this->config->offsetExists('storage\\avatar\\provider');
|
||||
}
|
||||
|
||||
static public function depends_on()
|
||||
{
|
||||
return [
|
||||
'\phpbb\db\migration\data\v400\dev',
|
||||
];
|
||||
}
|
||||
|
||||
public function update_data()
|
||||
{
|
||||
return [
|
||||
|
|
|
@ -23,6 +23,13 @@ class storage_backup extends migration
|
|||
return $this->db_tools->sql_table_exists($this->tables['backups']);
|
||||
}
|
||||
|
||||
static public function depends_on()
|
||||
{
|
||||
return [
|
||||
'\phpbb\db\migration\data\v400\dev',
|
||||
];
|
||||
}
|
||||
|
||||
public function update_schema()
|
||||
{
|
||||
return [
|
||||
|
|
Loading…
Add table
Reference in a new issue