summaryrefslogtreecommitdiff
path: root/modules/node/node.schema
diff options
context:
space:
mode:
Diffstat (limited to 'modules/node/node.schema')
-rw-r--r--modules/node/node.schema32
1 files changed, 18 insertions, 14 deletions
diff --git a/modules/node/node.schema b/modules/node/node.schema
index 69a8981a8..752732c5f 100644
--- a/modules/node/node.schema
+++ b/modules/node/node.schema
@@ -4,19 +4,21 @@
function node_schema() {
$schema['node'] = array(
'fields' => array(
- 'nid' => array('type' => 'serial', 'unsigned' => TRUE, 'not null' => TRUE),
- 'vid' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => FALSE, 'default' => 0),
- 'type' => array('type' => 'varchar', 'length' => 32, 'not null' => TRUE, 'default' => ''),
- 'language' => array('type' => 'varchar', 'length' => 12, 'not null' => TRUE, 'default' => ''),
- 'title' => array('type' => 'varchar', 'length' => 128, 'not null' => TRUE, 'default' => ''),
- 'uid' => array('type' => 'int', 'not null' => TRUE, 'default' => 0),
- 'status' => array('type' => 'int', 'not null' => TRUE, 'default' => 1),
- 'created' => array('type' => 'int', 'not null' => TRUE, 'default' => 0),
- 'changed' => array('type' => 'int', 'not null' => TRUE, 'default' => 0),
- 'comment' => array('type' => 'int', 'not null' => TRUE, 'default' => 0),
- 'promote' => array('type' => 'int', 'not null' => TRUE, 'default' => 0),
- 'moderate' => array('type' => 'int', 'not null' => TRUE, 'default' => 0),
- 'sticky' => array('type' => 'int', 'not null' => TRUE, 'default' => 0)
+ 'nid' => array('type' => 'serial', 'unsigned' => TRUE, 'not null' => TRUE),
+ 'vid' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => FALSE, 'default' => 0),
+ 'type' => array('type' => 'varchar', 'length' => 32, 'not null' => TRUE, 'default' => ''),
+ 'language' => array('type' => 'varchar', 'length' => 12, 'not null' => TRUE, 'default' => ''),
+ 'title' => array('type' => 'varchar', 'length' => 128, 'not null' => TRUE, 'default' => ''),
+ 'uid' => array('type' => 'int', 'not null' => TRUE, 'default' => 0),
+ 'status' => array('type' => 'int', 'not null' => TRUE, 'default' => 1),
+ 'created' => array('type' => 'int', 'not null' => TRUE, 'default' => 0),
+ 'changed' => array('type' => 'int', 'not null' => TRUE, 'default' => 0),
+ 'comment' => array('type' => 'int', 'not null' => TRUE, 'default' => 0),
+ 'promote' => array('type' => 'int', 'not null' => TRUE, 'default' => 0),
+ 'moderate' => array('type' => 'int', 'not null' => TRUE, 'default' => 0),
+ 'sticky' => array('type' => 'int', 'not null' => TRUE, 'default' => 0),
+ 'tnid' => array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0),
+ 'translate' => array('type' => 'int', 'not null' => TRUE, 'default' => 0),
),
'indexes' => array(
'nid' => array('nid'),
@@ -28,7 +30,9 @@ function node_schema() {
'node_title_type' => array('title', array('type', 4)),
'node_type' => array(array('type', 4)),
'status' => array('status'),
- 'uid' => array('uid')
+ 'uid' => array('uid'),
+ 'tnid' => array('tnid'),
+ 'translate' => array('translate'),
),
'unique keys' => array(
'nid_vid' => array('nid', 'vid'),