summaryrefslogtreecommitdiff
path: root/admin
diff options
context:
space:
mode:
authorChristian Fowler <spider@viovio.com>2006-02-15 23:10:10 +0000
committerChristian Fowler <spider@viovio.com>2006-02-15 23:10:10 +0000
commit972a6df693457be6bf32201284570b4332a3978c (patch)
treeb146325118b0818561b13e830c1bcfce786b54a2 /admin
parentc0e7677e770068ba3a33af269ffd7ee497dc4c91 (diff)
downloadlanguages-972a6df693457be6bf32201284570b4332a3978c.tar.gz
languages-972a6df693457be6bf32201284570b4332a3978c.tar.bz2
languages-972a6df693457be6bf32201284570b4332a3978c.zip
add backticks for reserved column names in schema_inc's
Diffstat (limited to 'admin')
-rw-r--r--admin/schema_inc.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/admin/schema_inc.php b/admin/schema_inc.php
index 065949d..3e7a14f 100644
--- a/admin/schema_inc.php
+++ b/admin/schema_inc.php
@@ -29,7 +29,7 @@ $tables = array(
version C(32) PRIMARY
",
-'i18n_content_translation_map' => "
+'i18n_content_trans_map' => "
content_id I4 NOTNULL,
translation_id I4 NOTNULL
CONSTRAINT ', CONSTRAINT `liberty_translation_ref` FOREIGN KEY (`content_id`) REFERENCES `".BIT_DB_PREFIX."liberty_content`( `content_id` )'
@@ -44,13 +44,13 @@ foreach( array_keys( $tables ) AS $tableName ) {
}
$indices = array (
- 'i18n_masters_pkg_idx' => array( 'table' => 'i18n_masters', 'cols' => '`package`', 'opts' => NULL ),
- 'i18n_masters_created_idx' => array( 'table' => 'i18n_masters', 'cols' => '`created`', 'opts' => NULL ),
- 'i18n_strings_lang_idx' => array( 'table' => 'i18n_strings', 'cols' => '`lang_code`', 'opts' => NULL ),
- 'i18n_strings_lang_idx' => array( 'table' => 'i18n_strings', 'cols' => '`source_hash`', 'opts' => NULL ),
- 'i18n_strings_modif_idx' => array( 'table' => 'i18n_strings', 'cols' => '`last_modified`', 'opts' => NULL ),
- 'i18n_version_src_idx' => array( 'table' => 'i18n_version_map', 'cols' => '`source_hash`', 'opts' => NULL ),
- 'i18n_version_ver_idx' => array( 'table' => 'i18n_version_map', 'cols' => '`version`', 'opts' => NULL ),
+ 'i18n_masters_pkg_idx' => array( 'table' => 'i18n_masters', 'cols' => 'package', 'opts' => NULL ),
+ 'i18n_masters_created_idx' => array( 'table' => 'i18n_masters', 'cols' => 'created', 'opts' => NULL ),
+ 'i18n_strings_lang_idx' => array( 'table' => 'i18n_strings', 'cols' => 'lang_code', 'opts' => NULL ),
+ 'i18n_strings_lang_idx' => array( 'table' => 'i18n_strings', 'cols' => 'source_hash', 'opts' => NULL ),
+ 'i18n_strings_modif_idx' => array( 'table' => 'i18n_strings', 'cols' => 'last_modified', 'opts' => NULL ),
+ 'i18n_version_src_idx' => array( 'table' => 'i18n_version_map', 'cols' => 'source_hash', 'opts' => NULL ),
+ 'i18n_version_ver_idx' => array( 'table' => 'i18n_version_map', 'cols' => 'version', 'opts' => NULL ),
);
$gBitInstaller->registerSchemaIndexes( LANGUAGES_PKG_NAME, $indices );