diff options
author | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-06-15 18:40:14 +0000 |
---|---|---|
committer | Gábor Hojtsy <gabor@hojtsy.hu> | 2007-06-15 18:40:14 +0000 |
commit | 85805096f7f9fbbed60438af7c3d0c1d9ec3959d (patch) | |
tree | a7e74479cbbf7a93acceb0ad02c8452449d93c02 /modules/node/node.schema | |
parent | ae0392b2eb956263c35fb04b695f4974dcca2787 (diff) | |
download | brdo-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.schema | 32 |
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'), |