diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-10-20 01:15:58 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-10-20 01:15:58 +0000 |
commit | cb1f944383477ea46d49326887ababb8f64899dd (patch) | |
tree | 92e23632a5b3a0e2a0abedfc7c697e1b44262440 /modules/block | |
parent | 11289d69fe59b9679062765b22c1f097ede9cb86 (diff) | |
download | brdo-cb1f944383477ea46d49326887ababb8f64899dd.tar.gz brdo-cb1f944383477ea46d49326887ababb8f64899dd.tar.bz2 |
- Patch #934050 by sun, alex_b: change format into string.
Diffstat (limited to 'modules/block')
-rw-r--r-- | modules/block/block.install | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/modules/block/block.install b/modules/block/block.install index b45c5e5e2..7567499f3 100644 --- a/modules/block/block.install +++ b/modules/block/block.install @@ -155,8 +155,8 @@ function block_schema() { 'description' => 'Block description.', ), 'format' => array( - 'type' => 'int', - 'unsigned' => TRUE, + 'type' => 'varchar', + 'length' => 255, 'not null' => FALSE, 'description' => 'The {filter_format}.format of the block body.', ), @@ -196,6 +196,11 @@ function block_update_dependencies() { $dependencies['block'][7005] = array( 'filter' => 7000, ); + // Ensure that format columns are only changed after Filter module has changed + // the primary records. + $dependencies['block'][7007] = array( + 'filter' => 7010, + ); return $dependencies; } @@ -445,6 +450,18 @@ function block_update_7006() { } /** + * Change {block_custom}.format into varchar. + */ +function block_update_7007() { + db_change_field('block_custom', 'format', 'format', array( + 'type' => 'varchar', + 'length' => 255, + 'not null' => FALSE, + 'description' => 'The {filter_format}.format of the block body.', + )); +} + +/** * @} End of "defgroup updates-6.x-to-7.x" * The next series of updates should start at 8000. */ |