This repository was archived by the owner on Jul 25, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdom_parse_to_node.install
More file actions
79 lines (68 loc) · 1.62 KB
/
dom_parse_to_node.install
File metadata and controls
79 lines (68 loc) · 1.62 KB
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
73
Ä<?php
/*
*Implement hook_schema().
*/
function dom_parse_to_node_schema() {
$schema = array();
$schema['dom_parse_to_node'] = array(
'description' => 'Scraped IDs and CDATA',
'fields' => array(
'internal_id' => array(
'type' => 'serial',
'unsigned' => TRUE,
'not null' => TRUE,
'description' => "Internal ID",
),
'banner_id' => array(
'type' => 'text',
'description' => "Item ID",
'length' => '1024',
),
'CDATA' => array(
'type' => 'text',
'description' => 'CDATA',
'length' => '36000',
),
),
'primary key' => array(
'internal_id',
),
);
$schema['Internal_node_ids§'] = array(
'description' => 'Internal Node IDs',
'fields' => array(
'internal_id' => array(
'type' => 'serial',
'unsigned' => TRUE,
'not null' => TRUE,
'description' => "Internal ID",
),
'banner_id' => array(
'type' => 'text',
'description' => "Internal Node IDs",
'length' => '1024',
),
'nid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => FALSE,
'description' => "Nid",
),
'data' => array(
'type' => 'text',
'description' => 'General Data',
),
),
'primary key' => array(
'internal_id',
),
);
return $schema;
}
/*
*Implements hook_update_N().
*/
function dom_parse_to_node_update_9121() {
drupal_install_schema('dom_parse_to_node');
//drupal_set_message("update_x installed");
}