/[drupal]/contributions/modules/import_manager/import_manager.install
ViewVC logotype

Diff of /contributions/modules/import_manager/import_manager.install

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

revision 1.3, Thu Aug 6 01:47:57 2009 UTC revision 1.4, Thu Sep 10 19:12:17 2009 UTC
# Line 26  function import_manager_schema() { Line 26  function import_manager_schema() {
26      ),      ),
27      'import_manager_log' => array(      'import_manager_log' => array(
28        'fields' => array(        'fields' => array(
29            'import_id' => array(
30              'type' => 'serial',
31              'not null' => TRUE,
32            ),
33          'callback' => array(          'callback' => array(
34            'type' => 'varchar',            'type' => 'varchar',
35            'length' => 255,            'length' => 255,
# Line 42  function import_manager_schema() { Line 46  function import_manager_schema() {
46            'unsigned' => TRUE,            'unsigned' => TRUE,
47          ),          ),
48        ),        ),
49          'primary key' => array('import_id'),
50        'indexes' => array(        'indexes' => array(
51          'callback_time' => array('callback', 'time'),          'callback_time' => array('callback', 'time'),
52        ),        ),
53      ),      ),
54    
55        'import_manager_log_detail' => array(
56          'fields' => array(
57            'import_id' => array(
58              'type' => 'int',
59              'not null' => TRUE,
60            ),
61            'message' => array(
62              'type' => 'text',
63              'size' => 'big',
64              'not null' => TRUE,
65            ),
66            'timestamp' => array(
67              'type' => 'int',
68              'not null' => TRUE,
69              'default' => 0,
70            ),
71            'variables' => array(
72              'type' => 'text',
73              'size' => 'big',
74              'not null' => TRUE,
75            ),
76          ),
77        ),
78    
79    );    );
80  }  }
81    
# Line 76  function import_manager_update_6001() { Line 106  function import_manager_update_6001() {
106    db_create_table($return, 'import_manager_log', $table);    db_create_table($return, 'import_manager_log', $table);
107    return $return;    return $return;
108  }  }
109    
110    /**
111     * Create table for holding import log details, add primary key column to import manager log table.
112     */
113    function import_manager_update_6002() {
114      $table = array(
115        'fields' => array(
116          'import_id' => array(
117            'type' => 'int',
118            'not null' => TRUE,
119          ),
120          'message' => array(
121            'type' => 'text',
122            'size' => 'big',
123            'not null' => TRUE,
124          ),
125          'timestamp' => array(
126            'type' => 'int',
127            'not null' => TRUE,
128            'default' => 0,
129          ),
130          'variables' => array(
131            'type' => 'text',
132            'size' => 'big',
133            'not null' => TRUE,
134          ),
135        ),
136      );
137      $return = array();
138      db_create_table($return, 'import_manager_log_detail', $table);
139      db_add_field($return, 'import_manager_log', 'import_id', array('type' => 'serial', 'not null' => TRUE), array('primary key' => array('import_id')));
140      return $return;
141    }

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

  ViewVC Help
Powered by ViewVC 1.1.2