-
Notifications
You must be signed in to change notification settings - Fork 0
/
agile_fonds_importer.install
72 lines (68 loc) · 1.87 KB
/
agile_fonds_importer.install
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<?php
/**
* @file
* Install hooks for this module.
*/
/**
* Implements hook_schema().
*/
function agile_fonds_importer_schema() {
$schema = array();
$schema['agile_fonds_metadata'] = array(
'description' => 'Records metadata migrated from CSV.',
'fields' => array(
'wo_number' => array(
'description' => 'W.O. Number from spreadsheet',
'type' => 'varchar',
'length' => 255,
'not null' => FALSE,
),
'item_number' => array(
'description' => 'Item number from spreadsheet.',
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => 'Undefined',
),
'copy_negative_number' => array(
'description' => 'Copy Negative Number number from spreadsheet.',
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
),
'c140' => array(
'description' => 'Barcode from spreadsheet.',
'type' => 'varchar',
'length' => 255,
'not null' => FALSE,
),
'title' => array(
'description' => 'title from spreadsheet.',
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
),
'copy_negative_number' => array(
'description' => 'Copy Negative Number number from spreadsheet.',
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
),
'special_notes' => array(
'description' => 'Copy Negative Number number from spreadsheet.',
'type' => 'varchar',
'length' => 255,
'not null' => FALSE,
),
'pid' => array(
'description' => 'PID od object created from this record.',
'default' => 'uningested',
'type' => 'varchar',
'length' => 255,
'not null' => FALSE,
),
),
'primary key' => array('copy_negative_number'),
);
return $schema;
}