summaryrefslogtreecommitdiff
path: root/modules/system/system.install
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/system/system.install
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/system/system.install')
-rw-r--r--modules/system/system.install12
1 files changed, 12 insertions, 0 deletions
diff --git a/modules/system/system.install b/modules/system/system.install
index edc864cbb..21a523329 100644
--- a/modules/system/system.install
+++ b/modules/system/system.install
@@ -3350,6 +3350,18 @@ function system_update_6023() {
}
/**
+ * Add translation fields to nodes used by translation module.
+ */
+function system_update_6024() {
+ $ret = array();
+ db_add_field($ret, 'node', 'tnid', array('type' => 'int', 'unsigned' => TRUE, 'not null' => TRUE, 'default' => 0));
+ db_add_field($ret, 'node', 'translate', array('type' => 'int', 'not null' => TRUE, 'default' => 0));
+ db_add_index($ret, 'node', 'tnid', array('tnid'));
+ db_add_index($ret, 'node', 'translate', array('translate'));
+ return $ret;
+}
+
+/**
* @} End of "defgroup updates-5.x-to-6.x"
* The next series of updates should start at 7000.
*/