aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/db/migration/migration.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes/db/migration/migration.php')
-rw-r--r--phpBB/includes/db/migration/migration.php23
1 files changed, 23 insertions, 0 deletions
diff --git a/phpBB/includes/db/migration/migration.php b/phpBB/includes/db/migration/migration.php
index 5f1f0443db..61fbf04320 100644
--- a/phpBB/includes/db/migration/migration.php
+++ b/phpBB/includes/db/migration/migration.php
@@ -94,6 +94,16 @@ abstract class phpbb_db_migration
}
/**
+ * Reverts the database schema by providing a set of change instructions
+ *
+ * @return array Array of schema changes (compatible with db_tools->perform_schema_changes())
+ */
+ public function revert_schema()
+ {
+ return array();
+ }
+
+ /**
* Updates data by returning a list of instructions to be executed
*
* @return array Array of data update instructions
@@ -104,6 +114,19 @@ abstract class phpbb_db_migration
}
/**
+ * Reverts data by returning a list of instructions to be executed
+ *
+ * @return array Array of data instructions that will be performed on revert
+ * NOTE: calls to tools (such as config.add) are automatically reverted when
+ * possible, so you should not attempt to revert those, this is mostly for
+ * otherwise unrevertable calls (custom functions for example)
+ */
+ public function revert_data()
+ {
+ return array();
+ }
+
+ /**
* Wrapper for running queries to generate user feedback on updates
*
* @param string $sql SQL query to run on the database