From 118e91cc4048905446ee46fa87af60a96c996c8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Hojtsy?= Date: Wed, 29 Aug 2007 14:57:50 +0000 Subject: #155828 by Eaton, pwolanin and jvandyk: let actions live even if actions.module is not turned on --- modules/system/system.install | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'modules/system/system.install') 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 @@ -3560,6 +3560,35 @@ function system_update_6029() { return array(); } +/** + * 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. -- cgit v1.2.3