summaryrefslogtreecommitdiff
path: root/modules/block
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2010-06-28 02:05:47 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2010-06-28 02:05:47 +0000
commit029e7b8828adbbe6c68d5f3809abaca5f704ad3c (patch)
treeb29753faf51ba176d45df01bfa184c05b5aaabb9 /modules/block
parent8ef7c6fb8db3e3100488968a532d0237ed350341 (diff)
downloadbrdo-029e7b8828adbbe6c68d5f3809abaca5f704ad3c.tar.gz
brdo-029e7b8828adbbe6c68d5f3809abaca5f704ad3c.tar.bz2
#838438 by Damien Tournoud, chx: Added basic tests for D6 => D7 upgrade path, and framework for further extending upgrade test coverage. W00t! :D
Diffstat (limited to 'modules/block')
-rw-r--r--modules/block/block.install16
1 files changed, 15 insertions, 1 deletions
diff --git a/modules/block/block.install b/modules/block/block.install
index 84b392725..b9f1285bc 100644
--- a/modules/block/block.install
+++ b/modules/block/block.install
@@ -394,12 +394,26 @@ function block_update_7004() {
}
/**
+ * Update the {block_custom}.format column.
+ */
+function block_update_7005() {
+ // It was previously possible for a value of "0" to be stored in database
+ // tables to indicate that a particular piece of text should be filtered
+ // using the default text format.
+ $default_format = variable_get('filter_default_format', 1);
+ db_update('block_custom')
+ ->fields(array('format' => $default_format))
+ ->condition('format', 0)
+ ->execute();
+}
+
+/**
* Recreates cache_block table.
*
* Converts fields that hold serialized variables from text to blob.
* Removes 'headers' column.
*/
-function block_update_7005() {
+function block_update_7006() {
$schema = system_schema_cache_7054();
db_drop_table('cache_block');