/[drupal]/contributions/modules/jobsearch/job.install
ViewVC logotype

Contents of /contributions/modules/jobsearch/job.install

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.4 - (show annotations) (download) (as text)
Fri Jan 2 02:49:21 2009 UTC (10 months, 3 weeks ago) by kbahey
Branch: MAIN
CVS Tags: HEAD
Branch point for: DRUPAL-6--1
Changes since 1.3: +60 -24 lines
File MIME type: text/x-php
Initial Drupal 6.x port, by xamount. Email does not work yet.
1 <?php
2 //$Id$
3 // Copyright Khalid Baheyeldin 2008-2009 http://2bits.com
4
5 /**
6 * Implementation of hook_install().
7 */
8 function job_install() {
9 drupal_install_schema('job');
10 }
11
12 /**
13 * Implementation of hook_schema().
14 */
15 function job_schema() {
16 $schema['job'] = array(
17 'description' => t('The table for jobs'),
18 'fields' => array(
19
20 'nid' => array(
21 'description' => t('The {node} this version belongs to.'),
22 'type' => 'int',
23 'unsigned' => TRUE,
24 'not null' => TRUE,
25 'default' => 0
26 ),
27
28 'uid' => array(
29 'description' => t('The {users}.uid that created this version.'),
30 'type' => 'int',
31 'not null' => TRUE,
32 'default' => 0
33 ),
34
35 'resume_nid' => array(
36 'description' => t('The resume nid'),
37 'type' => 'int',
38 'unsigned' => TRUE,
39 'not null' => TRUE,
40 'default' => 0
41 ),
42
43 'timestamp' => array(
44 'description' => t('A Unix timestamp indicating when this version was created.'),
45 'type' => 'int',
46 'not null' => TRUE,
47 'default' => 0
48 ),
49
50 'status' => array(
51 'description' => t('Is the node published or not'),
52 'type' => 'int',
53 'not null' => TRUE,
54 'default' => 0,
55 ),
56 ),
57 'primary key' => array('nid', 'uid'),
58 );
59 return $schema;
60 }
61
62 /**
63 * Implentation of hook_uninstall();
64 *
65 */
66 function job_uninstall() {
67 drupal_uninstall_schema('job');
68 }

  ViewVC Help
Powered by ViewVC 1.1.2