diff options
Diffstat (limited to 'modules/user/user.install')
-rw-r--r-- | modules/user/user.install | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/modules/user/user.install b/modules/user/user.install index 9d5256e62..615743b8b 100644 --- a/modules/user/user.install +++ b/modules/user/user.install @@ -167,8 +167,8 @@ function user_schema() { 'description' => "User's signature.", ), 'signature_format' => array( - 'type' => 'int', - 'unsigned' => TRUE, + 'type' => 'varchar', + 'length' => 255, 'not null' => FALSE, 'description' => 'The {filter_format}.format of the signature.', ), @@ -355,6 +355,11 @@ function user_update_dependencies() { $dependencies['user'][7013] = array( 'system' => 7059, ); + // Ensure that format columns are only changed after Filter module has changed + // the primary records. + $dependencies['user'][7015] = array( + 'filter' => 7010, + ); return $dependencies; } @@ -838,6 +843,18 @@ function user_update_7014() { } /** + * Change {users}.signature_format into varchar. + */ +function user_update_7015() { + db_change_field('users', 'signature_format', 'signature_format', array( + 'type' => 'varchar', + 'length' => 255, + 'not null' => FALSE, + 'description' => 'The {filter_format}.format of the signature.', + )); +} + +/** * @} End of "defgroup user-updates-6.x-to-7.x" * The next series of updates should start at 8000. */ |