From 66ccf153f086d5cfe32ef17284a7579b6bcdc0c0 Mon Sep 17 00:00:00 2001 From: William Hearn Date: Sun, 17 Jan 2016 22:36:25 -0500 Subject: [PATCH] Issue #2633456 by sylus: Workbench Moderation bring back to stable --- workbench_moderation.install | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/workbench_moderation.install b/workbench_moderation.install index 8d68ed3..8c4ca9a 100644 --- a/workbench_moderation.install +++ b/workbench_moderation.install @@ -667,6 +667,12 @@ function workbench_moderation_update_7010() { 'not null' => TRUE, 'default' => 0, ); - db_change_field($table, $field, $field_new, $spec); - return t("Renamed 'current' column in node_history table"); + + if (db_field_exists($table, $field_new)) { + return t("No rename needed 'current' column in node_history exists"); + } + else { + db_change_field($table, $field, $field_new, $spec); + return t("Renamed 'current' column in node_history table"); + } } -- 2.3.8 (Apple Git-58)