summaryrefslogtreecommitdiff
path: root/modules/taxonomy/taxonomy.install
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2010-09-28 03:30:37 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2010-09-28 03:30:37 +0000
commit0c49d5794534fe9fd609c6884bdde8849edcb0eb (patch)
tree029343c988a2dd983e96ece91b2d6adb2e126509 /modules/taxonomy/taxonomy.install
parent782eb4c79c883466ad3414fa981e286b782afe6c (diff)
downloadbrdo-0c49d5794534fe9fd609c6884bdde8849edcb0eb.tar.gz
brdo-0c49d5794534fe9fd609c6884bdde8849edcb0eb.tar.bz2
#358437 follow-up by David_Rothstein, sun, chx: Disallow invalid text format IDs; force 0 and non-existant formats to NULL.
Diffstat (limited to 'modules/taxonomy/taxonomy.install')
-rw-r--r--modules/taxonomy/taxonomy.install10
1 files changed, 4 insertions, 6 deletions
diff --git a/modules/taxonomy/taxonomy.install b/modules/taxonomy/taxonomy.install
index 51444fe3d..8bd3a31db 100644
--- a/modules/taxonomy/taxonomy.install
+++ b/modules/taxonomy/taxonomy.install
@@ -52,9 +52,8 @@ function taxonomy_schema() {
),
'format' => array(
'type' => 'int',
- 'size' => 'small',
- 'not null' => TRUE,
- 'default' => 0,
+ 'unsigned' => TRUE,
+ 'not null' => FALSE,
'description' => 'The {filter_format}.format of the description.',
),
'weight' => array(
@@ -736,9 +735,8 @@ function taxonomy_update_7005(&$sandbox) {
function taxonomy_update_7006() {
db_add_field('taxonomy_term_data', 'format', array(
'type' => 'int',
- 'size' => 'small',
- 'not null' => TRUE,
- 'default' => 0,
+ 'unsigned' => TRUE,
+ 'not null' => FALSE,
'description' => 'The {filter_format}.format of the description.',
));
}