diff options
author | Dries Buytaert <dries@buytaert.net> | 2007-10-05 14:43:26 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2007-10-05 14:43:26 +0000 |
commit | 39706e3c51cf206ca6669bbb7a090d2f7d394591 (patch) | |
tree | 9286ccd302d526ea8a1de799081356fcc77c28a3 /modules/trigger/trigger.install | |
parent | d568128b9f7a0181b31e9baa087022e892352ea7 (diff) | |
download | brdo-39706e3c51cf206ca6669bbb7a090d2f7d394591.tar.gz brdo-39706e3c51cf206ca6669bbb7a090d2f7d394591.tar.bz2 |
- Patch #150245 by webchick, bjaspan, ralf, Arancaytar et al: move the .schema files into .install files to prevent mistakes.
Diffstat (limited to 'modules/trigger/trigger.install')
-rw-r--r-- | modules/trigger/trigger.install | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/modules/trigger/trigger.install b/modules/trigger/trigger.install index 13dd08ae1..14aaf2edd 100644 --- a/modules/trigger/trigger.install +++ b/modules/trigger/trigger.install @@ -19,3 +19,20 @@ function trigger_uninstall() { // Remove tables. drupal_uninstall_schema('trigger'); } + +/** + * Implementation of hook_schema(). + */ +function trigger_schema() { + $schema['trigger_assignments'] = array( + 'fields' => array( + 'hook' => array('type' => 'varchar', 'length' => 32, 'not null' => TRUE, 'default' => ''), + 'op' => array('type' => 'varchar', 'length' => 32, 'not null' => TRUE, 'default' => ''), + 'aid' => array('type' => 'varchar', 'length' => 255, 'not null' => TRUE, 'default' => ''), + 'weight' => array('type' => 'int', 'not null' => TRUE, 'default' => 0), + ), + 'primary key' => array('hook', 'op', 'aid'), + ); + return $schema; +} + |