diff options
author | Dries Buytaert <dries@buytaert.net> | 2010-03-28 11:16:29 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2010-03-28 11:16:29 +0000 |
commit | 40fb3a9392de0a0a09200f72dc15f821208450db (patch) | |
tree | b208bc51dc386ed7a7234544466189ed70959863 /modules/node/node.install | |
parent | fdb422b8a27539938404cdc3d1a1b73bc01f5d4a (diff) | |
download | brdo-40fb3a9392de0a0a09200f72dc15f821208450db.tar.gz brdo-40fb3a9392de0a0a09200f72dc15f821208450db.tar.bz2 |
- Patch #684774 by andypost, sun: critical bug: block visibility settings cannot be properly extended.
Diffstat (limited to 'modules/node/node.install')
-rw-r--r-- | modules/node/node.install | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/modules/node/node.install b/modules/node/node.install index 473bc4efd..3a139e981 100644 --- a/modules/node/node.install +++ b/modules/node/node.install @@ -353,6 +353,34 @@ function node_schema() { 'primary key' => array('type'), ); + $schema['block_node_type'] = array( + 'description' => 'Sets up display criteria for blocks based on content types', + 'fields' => array( + 'module' => array( + 'type' => 'varchar', + 'length' => 64, + 'not null' => TRUE, + 'description' => "The block's origin module, from {block}.module.", + ), + 'delta' => array( + 'type' => 'varchar', + 'length' => 32, + 'not null' => TRUE, + 'description' => "The block's unique delta within module, from {block}.delta.", + ), + 'type' => array( + 'type' => 'varchar', + 'length' => 32, + 'not null' => TRUE, + 'description' => "The machine-readable name of this type from {node_type}.type.", + ), + ), + 'primary key' => array('module', 'delta', 'type'), + 'indexes' => array( + 'type' => array('type'), + ), + ); + return $schema; } @@ -610,6 +638,41 @@ function node_update_7009() { } /** + * Add the {block_node_type} table. + */ +function node_update_7010() { + $schema['block_node_type'] = array( + 'description' => 'Sets up display criteria for blocks based on content types', + 'fields' => array( + 'module' => array( + 'type' => 'varchar', + 'length' => 64, + 'not null' => TRUE, + 'description' => "The block's origin module, from {block}.module.", + ), + 'delta' => array( + 'type' => 'varchar', + 'length' => 32, + 'not null' => TRUE, + 'description' => "The block's unique delta within module, from {block}.delta.", + ), + 'type' => array( + 'type' => 'varchar', + 'length' => 32, + 'not null' => TRUE, + 'description' => "The machine-readable name of this type from {node_type}.type.", + ), + ), + 'primary key' => array('module', 'delta', 'type'), + 'indexes' => array( + 'type' => array('type'), + ), + ); + + db_create_table('block_node_type', $schema['block_node_type']); +} + +/** * @} End of "defgroup updates-6.x-to-7.x" * The next series of updates should start at 8000. */ |