summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-07-01 12:03:35 +0000
committerDries Buytaert <dries@buytaert.net>2009-07-01 12:03:35 +0000
commit603efa2763975962eb53fd1c251f1dc611bb34a3 (patch)
tree90e9a5c55726c18ede93b1a6795e3d0787f6f66e
parentbecb6f902fbbe158356b81b791aa49e9db6ec545 (diff)
downloadbrdo-603efa2763975962eb53fd1c251f1dc611bb34a3.tar.gz
brdo-603efa2763975962eb53fd1c251f1dc611bb34a3.tar.bz2
- Patch #453254 by Pasqualle: upgrade path for per-content type visibility of blocks.
-rw-r--r--modules/system/system.install38
1 files changed, 38 insertions, 0 deletions
diff --git a/modules/system/system.install b/modules/system/system.install
index 2afc9152f..0d921426e 100644
--- a/modules/system/system.install
+++ b/modules/system/system.install
@@ -2223,6 +2223,44 @@ function system_update_7028() {
return $ret;
}
+/**
+ * Add the block_node_type table.
+ */
+function system_update_7029() {
+ $ret = array();
+
+ $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($ret, 'block_node_type', $schema['block_node_type']);
+ return $ret;
+}
+
/**