summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorGábor Hojtsy <gabor@hojtsy.hu>2007-09-01 07:11:00 +0000
committerGábor Hojtsy <gabor@hojtsy.hu>2007-09-01 07:11:00 +0000
commitf7f316cd01dd307015bf3a9fd78b77d9ab097bf5 (patch)
tree5407490e7a3cce42330df035ceb6238e576715e6 /modules
parentc07305d060174640af0194f472cb1292a3054e42 (diff)
downloadbrdo-f7f316cd01dd307015bf3a9fd78b77d9ab097bf5.tar.gz
brdo-f7f316cd01dd307015bf3a9fd78b77d9ab097bf5.tar.bz2
#165957 by hswong3i: create the variables table early, to make some DB driver writing a happier process
Diffstat (limited to 'modules')
-rw-r--r--modules/system/system.schema19
1 files changed, 11 insertions, 8 deletions
diff --git a/modules/system/system.schema b/modules/system/system.schema
index 2e63b39ff..a3ee189b0 100644
--- a/modules/system/system.schema
+++ b/modules/system/system.schema
@@ -2,6 +2,17 @@
// $Id$
function system_schema() {
+ // NOTE: {variable} needs to be created before all other tables, as
+ // some database drivers, e.g. Oracle and DB2, will require variable_get()
+ // and variable_set() for overcoming some database specific limitations.
+ $schema['variable'] = array(
+ 'fields' => array(
+ 'name' => array('type' => 'varchar', 'length' => 128, 'not null' => TRUE, 'default' => ''),
+ 'value' => array('type' => 'text', 'not null' => TRUE, 'size' => 'big'),
+ ),
+ 'primary key' => array('name'),
+ );
+
$schema['actions'] = array(
'fields' => array(
'aid' => array('type' => 'varchar', 'length' => 255, 'not null' => TRUE, 'default' => '0'),
@@ -205,13 +216,5 @@ function system_schema() {
'indexes' => array('src' => array('src')),
);
- $schema['variable'] = array(
- 'fields' => array(
- 'name' => array('type' => 'varchar', 'length' => 128, 'not null' => TRUE, 'default' => ''),
- 'value' => array('type' => 'text', 'not null' => TRUE, 'size' => 'big'),
- ),
- 'primary key' => array('name'),
- );
-
return $schema;
}