Skip to content

Commit 0787c52

Browse files
authored
Issue #12: Rename old db table (#13)
1 parent c13fd40 commit 0787c52

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

content_moderation.install

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,3 +186,14 @@ function content_moderation_update_1002() {
186186
db_drop_table('workbench_moderation_transitions');
187187
}
188188
}
189+
190+
/**
191+
* Rename workbench_moderation_node_history table.
192+
*/
193+
function content_moderation_update_1003() {
194+
$table = 'workbench_moderation_node_history';
195+
$new_name = 'content_moderation_node_history';
196+
if (db_table_exists($table) && !db_table_exists($new_name)) {
197+
db_rename_table($table, $new_name);
198+
}
199+
}

0 commit comments

Comments
 (0)