From 3ef899e4b0b04964b41f71f1bad1852f74ebe841 Mon Sep 17 00:00:00 2001 From: Lester Caine Date: Sun, 20 May 2007 10:58:31 +0000 Subject: 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 --- admin/schema_inc.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'admin') 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 ); -- cgit v1.3