aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2020-01-14 17:43:17 +0100
committerMarc Alexander <admin@m-a-styles.de>2020-01-14 17:43:17 +0100
commit6acdfab3192bde52eab784c967cf2a0017c29409 (patch)
treec9d0900c5e9cb5d13cb47634e8166e709012416b
parent[ticket/16284] Adjust create schema and add tables to tests (diff)
downloadphpbb-6acdfab3192bde52eab784c967cf2a0017c29409.tar.gz
phpbb-6acdfab3192bde52eab784c967cf2a0017c29409.tar.bz2
phpbb-6acdfab3192bde52eab784c967cf2a0017c29409.zip
[ticket/16284] Add depends_on to classes
PHPBB3-16284
-rw-r--r--phpBB/phpbb/db/migration/data/v400/add_storage_permission.php7
-rw-r--r--phpBB/phpbb/db/migration/data/v400/extensions_composer.php7
-rw-r--r--phpBB/phpbb/db/migration/data/v400/remove_attachment_download_mode.php7
-rw-r--r--phpBB/phpbb/db/migration/data/v400/storage_attachment.php7
-rw-r--r--phpBB/phpbb/db/migration/data/v400/storage_avatar.php7
-rw-r--r--phpBB/phpbb/db/migration/data/v400/storage_backup.php7
6 files changed, 42 insertions, 0 deletions
diff --git a/phpBB/phpbb/db/migration/data/v400/add_storage_permission.php b/phpBB/phpbb/db/migration/data/v400/add_storage_permission.php
index 5987b4ef61..de7b1786d8 100644
--- a/phpBB/phpbb/db/migration/data/v400/add_storage_permission.php
+++ b/phpBB/phpbb/db/migration/data/v400/add_storage_permission.php
@@ -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 [
diff --git a/phpBB/phpbb/db/migration/data/v400/extensions_composer.php b/phpBB/phpbb/db/migration/data/v400/extensions_composer.php
index 37440744c0..fce3847972 100644
--- a/phpBB/phpbb/db/migration/data/v400/extensions_composer.php
+++ b/phpBB/phpbb/db/migration/data/v400/extensions_composer.php
@@ -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 [
diff --git a/phpBB/phpbb/db/migration/data/v400/remove_attachment_download_mode.php b/phpBB/phpbb/db/migration/data/v400/remove_attachment_download_mode.php
index e400387ad4..59ac1b7be0 100644
--- a/phpBB/phpbb/db/migration/data/v400/remove_attachment_download_mode.php
+++ b/phpBB/phpbb/db/migration/data/v400/remove_attachment_download_mode.php
@@ -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 [
diff --git a/phpBB/phpbb/db/migration/data/v400/storage_attachment.php b/phpBB/phpbb/db/migration/data/v400/storage_attachment.php
index adddbdd9b8..7d091ac093 100644
--- a/phpBB/phpbb/db/migration/data/v400/storage_attachment.php
+++ b/phpBB/phpbb/db/migration/data/v400/storage_attachment.php
@@ -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 [
diff --git a/phpBB/phpbb/db/migration/data/v400/storage_avatar.php b/phpBB/phpbb/db/migration/data/v400/storage_avatar.php
index a8250b5faf..cbb93b4775 100644
--- a/phpBB/phpbb/db/migration/data/v400/storage_avatar.php
+++ b/phpBB/phpbb/db/migration/data/v400/storage_avatar.php
@@ -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 [
diff --git a/phpBB/phpbb/db/migration/data/v400/storage_backup.php b/phpBB/phpbb/db/migration/data/v400/storage_backup.php
index fffd08582b..3677620508 100644
--- a/phpBB/phpbb/db/migration/data/v400/storage_backup.php
+++ b/phpBB/phpbb/db/migration/data/v400/storage_backup.php
@@ -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 [