summaryrefslogtreecommitdiff
path: root/modules/system/system.install
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-07-28 12:37:54 +0000
committerDries Buytaert <dries@buytaert.net>2009-07-28 12:37:54 +0000
commitd6e113a3de6a10a512aa11342b7f82bf63a7c7e7 (patch)
tree642a76fd478918af19ad38fce04b29c5b0f01297 /modules/system/system.install
parentaab51b93194701c45e32e63be31a979c9d9754aa (diff)
downloadbrdo-d6e113a3de6a10a512aa11342b7f82bf63a7c7e7.tar.gz
brdo-d6e113a3de6a10a512aa11342b7f82bf63a7c7e7.tar.bz2
- Patch #513592 by Damien Tournoud: make it faster to rebuild the registry, mainly to improve performance of SimpleTest.
Diffstat (limited to 'modules/system/system.install')
-rw-r--r--modules/system/system.install19
1 files changed, 13 insertions, 6 deletions
diff --git a/modules/system/system.install b/modules/system/system.install
index 6e2465fca..5c5b19eab 100644
--- a/modules/system/system.install
+++ b/modules/system/system.install
@@ -1289,11 +1289,17 @@ function system_schema() {
'length' => 255,
'not null' => TRUE,
),
- 'md5' => array(
- 'description' => "Md5 hash of the file's contents when last parsed.",
- 'type' => 'varchar',
- 'length' => 32,
+ 'filectime' => array(
+ 'description' => "The creation time of the file when last parsed.",
+ 'type' => 'int',
'not null' => TRUE,
+ 'default' => 0,
+ ),
+ 'filemtime' => array(
+ 'description' => "The modification time of the file when last parsed.",
+ 'type' => 'int',
+ 'not null' => TRUE,
+ 'default' => 0,
),
),
'primary key' => array('filename'),
@@ -1717,8 +1723,9 @@ function system_update_7006() {
);
$schema['registry_file'] = array(
'fields' => array(
- 'filename' => array('type' => 'varchar', 'length' => 255, 'not null' => TRUE, 'default' => ''),
- 'md5' => array('type' => 'varchar', 'length' => 32, 'not null' => TRUE, 'default' => ''),
+ 'filename' => array('type' => 'varchar', 'length' => 255, 'not null' => TRUE),
+ 'filectime' => array('type' => 'int', 'not null' => TRUE, 'default' => 0),
+ 'filemtime' => array('type' => 'int', 'not null' => TRUE, 'default' => 0),
),
'primary key' => array('filename'),
);