summaryrefslogtreecommitdiff
path: root/modules/block
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2007-10-05 16:07:22 +0000
committerDries Buytaert <dries@buytaert.net>2007-10-05 16:07:22 +0000
commit5a752dc507618499ff5ad72bc1258692e1905284 (patch)
tree08522c7b1733dc5ec6c82f30ec572c8610dd88dd /modules/block
parent74a431e79a31d3d2dbec8ac65f28edb432765f92 (diff)
downloadbrdo-5a752dc507618499ff5ad72bc1258692e1905284.tar.gz
brdo-5a752dc507618499ff5ad72bc1258692e1905284.tar.bz2
- Added missing .install files. Forgot to commit those.
Diffstat (limited to 'modules/block')
-rw-r--r--modules/block/block.install55
1 files changed, 55 insertions, 0 deletions
diff --git a/modules/block/block.install b/modules/block/block.install
new file mode 100644
index 000000000..705a38b5c
--- /dev/null
+++ b/modules/block/block.install
@@ -0,0 +1,55 @@
+<?php
+// $Id$
+
+/**
+ * Implementation of hook_schema().
+ */
+function block_schema() {
+ $schema['blocks'] = array(
+ 'fields' => array(
+ 'bid' => array('type' => 'serial', 'not null' => TRUE),
+ 'module' => array('type' => 'varchar', 'length' => 64, 'not null' => TRUE, 'default' => ''),
+ 'delta' => array('type' => 'varchar', 'length' => 32, 'not null' => TRUE, 'default' => '0'),
+ 'theme' => array('type' => 'varchar', 'length' => 255, 'not null' => TRUE, 'default' => ''),
+ 'status' => array('type' => 'int', 'not null' => TRUE, 'default' => 0, 'size' => 'tiny'),
+ 'weight' => array('type' => 'int', 'not null' => TRUE, 'default' => 0, 'size' => 'tiny'),
+ 'region' => array('type' => 'varchar', 'length' => 64, 'not null' => TRUE, 'default' => 'left'),
+ 'custom' => array('type' => 'int', 'not null' => TRUE, 'default' => 0, 'size' => 'tiny'),
+ 'throttle' => array('type' => 'int', 'not null' => TRUE, 'default' => 0, 'size' => 'tiny'),
+ 'visibility' => array('type' => 'int', 'not null' => TRUE, 'default' => 0, 'size' => 'tiny'),
+ 'pages' => array('type' => 'text', 'not null' => TRUE),
+ 'title' => array('type' => 'varchar', 'length' => 64, 'not null' => TRUE, 'default' => ''),
+ 'cache' => array('type' => 'int', 'not null' => TRUE, 'default' => 0, 'size' => 'tiny'),
+ ),
+ 'primary key' => array('bid'),
+ );
+
+ $schema['blocks_roles'] = array(
+ 'fields' => array(
+ 'module' => array('type' => 'varchar', 'length' => 64, 'not null' => TRUE),
+ 'delta' => array('type' => 'varchar', 'length' => 32, 'not null' => TRUE),
+ 'rid' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE)
+ ),
+ 'primary key' => array(
+ 'module',
+ 'delta',
+ 'rid'
+ ),
+ );
+
+ $schema['boxes'] = array(
+ 'fields' => array(
+ 'bid' => array('type' => 'serial', 'unsigned' => TRUE, 'not null' => TRUE),
+ 'body' => array('type' => 'text', 'not null' => FALSE, 'size' => 'big'),
+ 'info' => array('type' => 'varchar', 'length' => 128, 'not null' => TRUE, 'default' => ''),
+ 'format' => array('type' => 'int', 'size' => 'small', 'not null' => TRUE, 'default' => 0)
+ ),
+ 'unique keys' => array('info' => array('info')),
+ 'primary key' => array('bid'),
+ );
+
+ $schema['cache_block'] = drupal_get_schema_unprocessed('system', 'cache');
+
+ return $schema;
+}
+