summaryrefslogtreecommitdiff
path: root/modules/system/system.install
diff options
context:
space:
mode:
authorGábor Hojtsy <gabor@hojtsy.hu>2007-08-29 14:57:50 +0000
committerGábor Hojtsy <gabor@hojtsy.hu>2007-08-29 14:57:50 +0000
commit118e91cc4048905446ee46fa87af60a96c996c8e (patch)
tree711299f43ce8fb8e9a872910bc8bb146944c7c9b /modules/system/system.install
parent89aef5b74f6eff31f80427e246a7a81fe52feb42 (diff)
downloadbrdo-118e91cc4048905446ee46fa87af60a96c996c8e.tar.gz
brdo-118e91cc4048905446ee46fa87af60a96c996c8e.tar.bz2
#155828 by Eaton, pwolanin and jvandyk: let actions live even if actions.module is not turned on
Diffstat (limited to 'modules/system/system.install')
-rw-r--r--modules/system/system.install29
1 files changed, 29 insertions, 0 deletions
diff --git a/modules/system/system.install b/modules/system/system.install
index 79f732b85..46e2a6fd6 100644
--- a/modules/system/system.install
+++ b/modules/system/system.install
@@ -3561,6 +3561,35 @@ function system_update_6029() {
}
/**
+ * Add the tables required by actions.inc.
+ */
+function system_update_6030() {
+ $ret = array();
+ $schema['actions'] = array(
+ 'fields' => array(
+ 'aid' => array('type' => 'varchar', 'length' => 255, 'not null' => TRUE, 'default' => '0'),
+ 'type' => array('type' => 'varchar', 'length' => 32, 'not null' => TRUE, 'default' => ''),
+ 'callback' => array('type' => 'varchar', 'length' => 255, 'not null' => TRUE, 'default' => ''),
+ 'parameters' => array('type' => 'text', 'not null' => TRUE, 'size' => 'big'),
+ 'description' => array('type' => 'varchar', 'length' => 255, 'not null' => TRUE, 'default' => '0'),
+ ),
+ 'primary key' => array('aid'),
+ );
+
+ $schema['actions_aid'] = array(
+ 'fields' => array(
+ 'aid' => array('type' => 'serial', 'unsigned' => TRUE, 'not null' => TRUE),
+ ),
+ 'primary key' => array('aid'),
+ );
+
+ db_create_table($ret, 'actions', $schema['actions']);
+ db_create_table($ret, 'actions_aid', $schema['actions_aid']);
+
+ return $ret;
+}
+
+/**
* @} End of "defgroup updates-5.x-to-6.x"
* The next series of updates should start at 7000.
*/