summaryrefslogtreecommitdiff
path: root/modules/system/system.install
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2007-04-25 21:28:00 +0000
committerDries Buytaert <dries@buytaert.net>2007-04-25 21:28:00 +0000
commit9a142acc8dcbf690e146d0c146128d8cf8443b47 (patch)
tree6849f0d59e1b6e0b01fdf8140d60e3e3a4668f0e /modules/system/system.install
parent3e9d5f9d3cbfe0e191682273cd05ad3ec5a2fdd0 (diff)
downloadbrdo-9a142acc8dcbf690e146d0c146128d8cf8443b47.tar.gz
brdo-9a142acc8dcbf690e146d0c146128d8cf8443b47.tar.bz2
- Patch #137376 by Gabor: add language support to nodes.
Diffstat (limited to 'modules/system/system.install')
-rw-r--r--modules/system/system.install19
1 files changed, 19 insertions, 0 deletions
diff --git a/modules/system/system.install b/modules/system/system.install
index f6bd4da42..b5f93887d 100644
--- a/modules/system/system.install
+++ b/modules/system/system.install
@@ -367,6 +367,7 @@ function system_install() {
nid int unsigned NOT NULL auto_increment,
vid int unsigned NOT NULL default '0',
type varchar(32) NOT NULL default '',
+ language varchar(12) NOT NULL default '',
title varchar(128) NOT NULL default '',
uid int NOT NULL default '0',
status int NOT NULL default '1',
@@ -840,6 +841,7 @@ function system_install() {
nid serial CHECK (nid >= 0),
vid int_unsigned NOT NULL default '0',
type varchar(32) NOT NULL default '',
+ language varchar(12) NOT NULL default '',
title varchar(128) NOT NULL default '',
uid int NOT NULL default '0',
status int NOT NULL default '1',
@@ -3798,6 +3800,23 @@ function system_update_6010() {
}
/**
+ * Add language support to nodes
+ */
+function system_update_6011() {
+ $ret = array();
+ switch ($GLOBALS['db_type']) {
+ case 'pgsql':
+ db_add_column($ret, 'node', 'language', 'varchar(12)', array('default' => "''", 'not null' => TRUE));
+ break;
+ case 'mysql':
+ case 'mysqli':
+ $ret[] = update_sql("ALTER TABLE {node} ADD language varchar(12) NOT NULL default ''");
+ break;
+ }
+ return $ret;
+}
+
+/**
* @} End of "defgroup updates-5.x-to-6.x"
* The next series of updates should start at 7000.
*/