aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/db/migration/data/3_0_4.php
diff options
context:
space:
mode:
authorNathan Guse <nathaniel.guse@gmail.com>2013-01-08 22:07:12 -0600
committerNathan Guse <nathaniel.guse@gmail.com>2013-01-09 16:42:47 -0600
commit82efb3e446efbb8ef05c6a777e3866901abfd07a (patch)
tree52437390f467f5ac84b712787a1dde8ca87c2887 /phpBB/includes/db/migration/data/3_0_4.php
parent91a921a96bf26607879de850fca105be78eadf1d (diff)
downloadforums-82efb3e446efbb8ef05c6a777e3866901abfd07a.tar
forums-82efb3e446efbb8ef05c6a777e3866901abfd07a.tar.gz
forums-82efb3e446efbb8ef05c6a777e3866901abfd07a.tar.bz2
forums-82efb3e446efbb8ef05c6a777e3866901abfd07a.tar.xz
forums-82efb3e446efbb8ef05c6a777e3866901abfd07a.zip
[feature/migrations] Remove references as it is now 3.1 code
PHPBB3-9737
Diffstat (limited to 'phpBB/includes/db/migration/data/3_0_4.php')
-rw-r--r--phpBB/includes/db/migration/data/3_0_4.php47
1 files changed, 47 insertions, 0 deletions
diff --git a/phpBB/includes/db/migration/data/3_0_4.php b/phpBB/includes/db/migration/data/3_0_4.php
new file mode 100644
index 0000000000..cd34fda9ab
--- /dev/null
+++ b/phpBB/includes/db/migration/data/3_0_4.php
@@ -0,0 +1,47 @@
+<?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_3_0_4 extends phpbb_db_migration
+{
+ function depends_on()
+ {
+ return array('phpbb_db_migration_data_3_0_4_rc1');
+ }
+
+ function update_schema()
+ {
+ return array();
+ }
+
+ function update_data()
+ {
+ return array(
+ array('custom', array(array(&$this, 'rename_log_delete_topic'))),
+ );
+ }
+
+ function rename_log_delete_topic()
+ {
+ if ($db->sql_layer == 'oracle')
+ {
+ // log_operation is CLOB - but we can change this later
+ $sql = 'UPDATE ' . $this->table_prefix . "log
+ SET log_operation = 'LOG_DELETE_TOPIC'
+ WHERE log_operation LIKE 'LOG_TOPIC_DELETED'";
+ $this->sql_query($sql);
+ }
+ else
+ {
+ $sql = 'UPDATE ' . $this->table_prefix . "log
+ SET log_operation = 'LOG_DELETE_TOPIC'
+ WHERE log_operation = 'LOG_TOPIC_DELETED'";
+ $this->sql_query($sql);
+ }
+ }
+}