Newer
Older
Angie Byron
committed
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<?php
/**
* @file
* Contains \Drupal\migrate_drupal\Tests\Table\d7\NodeRevision.
*
* THIS IS A GENERATED FILE. DO NOT EDIT.
*
* @see core/scripts/migrate-db.sh
* @see https://www.drupal.org/sandbox/benjy/2405029
*/
namespace Drupal\migrate_drupal\Tests\Table\d7;
use Drupal\migrate_drupal\Tests\Dump\DrupalDumpBase;
/**
* Generated file to represent the node_revision table.
*/
class NodeRevision extends DrupalDumpBase {
public function load() {
$this->createTable("node_revision", array(
'fields' => array(
'nid' => array(
'type' => 'int',
'not null' => TRUE,
'length' => '10',
'default' => '0',
'unsigned' => TRUE,
),
'vid' => array(
'type' => 'serial',
'not null' => TRUE,
'length' => '10',
'unsigned' => TRUE,
),
'uid' => array(
'type' => 'int',
'not null' => TRUE,
'length' => '11',
'default' => '0',
),
'title' => array(
'type' => 'varchar',
'not null' => TRUE,
'length' => '255',
'default' => '',
),
'log' => array(
'type' => 'text',
'not null' => TRUE,
'length' => 100,
),
'timestamp' => array(
'type' => 'int',
'not null' => TRUE,
'length' => '11',
'default' => '0',
),
'status' => array(
'type' => 'int',
'not null' => TRUE,
'length' => '11',
'default' => '1',
),
'comment' => array(
'type' => 'int',
'not null' => TRUE,
'length' => '11',
'default' => '0',
),
'promote' => array(
'type' => 'int',
'not null' => TRUE,
'length' => '11',
'default' => '0',
),
'sticky' => array(
'type' => 'int',
'not null' => TRUE,
'length' => '11',
'default' => '0',
),
),
'primary key' => array(
'vid',
),
Alex Pott
committed
'mysql_character_set' => 'utf8',
Angie Byron
committed
));
$this->database->insert("node_revision")->fields(array(
'nid',
'vid',
'uid',
'title',
'log',
'timestamp',
'status',
'comment',
'promote',
'sticky',
))
->values(array(
'nid' => '1',
'vid' => '1',
'uid' => '1',
'title' => 'A Node',
'log' => '',
'timestamp' => '1441032132',
Angie Byron
committed
'status' => '1',
'comment' => '2',
'promote' => '1',
'sticky' => '0',
))->values(array(
'nid' => '2',
'vid' => '2',
'uid' => '1',
'title' => 'The thing about Deep Space 9',
'log' => '',
'timestamp' => '1441306832',
'status' => '1',
'comment' => '2',
'promote' => '1',
'sticky' => '0',
Angie Byron
committed
))->execute();
}
}
#e111edf15130b7307ccaffac6f8f9b6f