summaryrefslogtreecommitdiff
path: root/admin
diff options
context:
space:
mode:
authorLester Caine <lester@lsces.co.uk>2007-05-20 10:58:31 +0000
committerLester Caine <lester@lsces.co.uk>2007-05-20 10:58:31 +0000
commit3ef899e4b0b04964b41f71f1bad1852f74ebe841 (patch)
treee60b8dd80d1ffc6f2b83c61c026b7cf700256386 /admin
parentec080ad18f21af9f22a260c16596115f197de7ec (diff)
downloadliberty-3ef899e4b0b04964b41f71f1bad1852f74ebe841.tar.gz
liberty-3ef899e4b0b04964b41f71f1bad1852f74ebe841.tar.bz2
liberty-3ef899e4b0b04964b41f71f1bad1852f74ebe841.zip
Trim constraint and index names below 32 characters
liberty_attachements_map_content_ref -> liberty_attachement_map_con_ref liberty_attachements_map_attachement_ref -> liberty_attachement_map_att_ref liberty_content_perm_content_idx -> liberty_content_perm_cont_idx
Diffstat (limited to 'admin')
-rw-r--r--admin/schema_inc.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/admin/schema_inc.php b/admin/schema_inc.php
index 1c95086..4d7f0f0 100644
--- a/admin/schema_inc.php
+++ b/admin/schema_inc.php
@@ -136,8 +136,8 @@ $tables = array(
content_id I4 NOTNULL
CONSTRAINT
', CONSTRAINT `liberty_attachments_map_unique` UNIQUE (`attachment_id`, `content_id`)
- , CONSTRAINT `liberty_attachments_map_content_ref` FOREIGN KEY (`content_id`) REFERENCES `".BIT_DB_PREFIX."liberty_content`( `content_id` )
- , CONSTRAINT `liberty_attachments_map_attachment_ref` FOREIGN KEY (`attachment_id`) REFERENCES `".BIT_DB_PREFIX."liberty_attachments`( `attachment_id` ) '
+ , CONSTRAINT `liberty_attachments_map_con_ref` FOREIGN KEY (`content_id`) REFERENCES `".BIT_DB_PREFIX."liberty_content`( `content_id` )
+ , CONSTRAINT `liberty_attachments_map_att_ref` FOREIGN KEY (`attachment_id`) REFERENCES `".BIT_DB_PREFIX."liberty_attachments`( `attachment_id` ) '
",
'liberty_files' => "
@@ -223,7 +223,7 @@ $indices = array (
'links_title_content_id_idx' => array( 'table' => 'liberty_content_links', 'cols' => 'to_title', 'opts' => NULL),
'liberty_content_perm_group_idx' => array( 'table' => 'liberty_content_permissions', 'cols' => 'group_id', 'opts' => NULL ),
'liberty_content_perm_perm_idx' => array( 'table' => 'liberty_content_permissions', 'cols' => 'perm_name', 'opts' => NULL ),
- 'liberty_content_perm_content_idx' => array( 'table' => 'liberty_content_permissions', 'cols' => 'content_id', 'opts' => NULL ),
+ 'liberty_content_perm_cont_idx' => array( 'table' => 'liberty_content_permissions', 'cols' => 'content_id', 'opts' => NULL ),
'process_id_idx' => array( 'table' => 'liberty_process_queue', 'cols' => 'content_id', 'opts' => NULL ),
);
$gBitInstaller->registerSchemaIndexes( LIBERTY_PKG_NAME, $indices );