diff options
author | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-10-09 16:08:37 +0000 |
---|---|---|
committer | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-10-09 16:08:37 +0000 |
commit | c1e9256dcba4a1956082a2fcb780739a1c566cab (patch) | |
tree | 96bb58852885462d0763506352239db1d771817f /update.php | |
parent | 2a19a5c3e115b1c49eed215dbcd30d838686aed0 (diff) | |
download | brdo-c1e9256dcba4a1956082a2fcb780739a1c566cab.tar.gz brdo-c1e9256dcba4a1956082a2fcb780739a1c566cab.tar.bz2 |
#181758 by webernet: move cache_block creation to update_fix_d6_requirements() to avoid warnings about the nonexistent table through the update process
Diffstat (limited to 'update.php')
-rw-r--r-- | update.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/update.php b/update.php index 315175caa..ee67c4d88 100644 --- a/update.php +++ b/update.php @@ -771,6 +771,21 @@ function update_fix_d6_requirements() { db_add_field($ret, 'locales_source', 'version', array('type' => 'varchar', 'length' => 20, 'not null' => TRUE, 'default' => 'none')); } variable_set('update_d6_requirements', TRUE); + + // Create the cache_block table. See system_update_6027() for more details. + $schema['cache_block'] = array( + 'fields' => array( + 'cid' => array('type' => 'varchar', 'length' => 255, 'not null' => TRUE, 'default' => ''), + 'data' => array('type' => 'blob', 'not null' => FALSE, 'size' => 'big'), + 'expire' => array('type' => 'int', 'not null' => TRUE, 'default' => 0), + 'created' => array('type' => 'int', 'not null' => TRUE, 'default' => 0), + 'headers' => array('type' => 'text', 'not null' => FALSE), + 'serialized' => array('type' => 'int', 'size' => 'small', 'not null' => TRUE, 'default' => 0) + ), + 'indexes' => array('expire' => array('expire')), + 'primary key' => array('cid'), + ); + db_create_table($ret, 'cache_block', $schema['cache_block']); } return $ret; |