summaryrefslogtreecommitdiff
path: root/modules/node/node.schema
diff options
context:
space:
mode:
authorGábor Hojtsy <gabor@hojtsy.hu>2007-06-15 18:40:14 +0000
committerGábor Hojtsy <gabor@hojtsy.hu>2007-06-15 18:40:14 +0000
commit85805096f7f9fbbed60438af7c3d0c1d9ec3959d (patch)
treea7e74479cbbf7a93acceb0ad02c8452449d93c02 /modules/node/node.schema
parentae0392b2eb956263c35fb04b695f4974dcca2787 (diff)
downloadbrdo-85805096f7f9fbbed60438af7c3d0c1d9ec3959d.tar.gz
brdo-85805096f7f9fbbed60438af7c3d0c1d9ec3959d.tar.bz2
#142280 by Jose A Reyero, yched and myself: Content translation support built on the existing node language feature
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'),