summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJose Reyero2011-09-08 10:36:50 (GMT)
committer Jose Reyero2011-09-08 10:36:50 (GMT)
commitff02d0fc11cee3b514d4049bb9ccf8db688b1bf1 (patch)
treed40c9da355ff8b9b0b860db0ca2e07ab0882666e
parent5b95ff7935fe15419743b09cee9cdd118a684e6d (diff)
Issue - #1210850 by zambrey: Changed Drop all obsoleted tables after i18n upgrade from D6.
-rw-r--r--i18n_variable/i18n_variable.install11
1 files changed, 10 insertions, 1 deletions
diff --git a/i18n_variable/i18n_variable.install b/i18n_variable/i18n_variable.install
index ebcaa3a..1b2ebfa 100644
--- a/i18n_variable/i18n_variable.install
+++ b/i18n_variable/i18n_variable.install
@@ -15,6 +15,7 @@ function i18n_variable_install() {
if (variable_get('i18n_drupal6_update')) {
i18n_variable_update_7000();
i18n_variable_update_7001();
+ i18n_variable_update_7002();
}
}
@@ -34,5 +35,13 @@ function i18n_variable_update_7001() {
foreach (db_select('i18n_variable', 'v')->fields('v')->execute()->fetchAll() as $variable) {
variable_store_set('language', $variable->language, $variable->name, unserialize($variable->value));
}
- // @todo Delete obsoleted table i18n_variable
+}
+
+/**
+ * Drop i18n_variable table if exists
+ */
+function i18n_variable_update_7002() {
+ if (db_table_exists('i18n_variable')) {
+ db_drop_table('i18n_variable');
+ }
} \ No newline at end of file