[Vtigercrm-commits] [vtiger-commits] r9154 - /vtigercrm/trunk/install/5createTables.inc.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Mon Aug 28 15:04:54 EDT 2006
Author: richie
Date: Mon Aug 28 13:04:47 2006
New Revision: 9154
Log:
Support for PostGres DB done
Modified:
vtigercrm/trunk/install/5createTables.inc.php
Modified: vtigercrm/trunk/install/5createTables.inc.php
==============================================================================
--- vtigercrm/trunk/install/5createTables.inc.php (original)
+++ vtigercrm/trunk/install/5createTables.inc.php Mon Aug 28 13:04:47 2006
@@ -160,6 +160,78 @@
//$adb->setDebug(true);
$success = $adb->createTables("schema/DatabaseSchema.xml");
+//Postgres8 fix - create sequences.
+// This should be a part of "createTables" however ...
+ if( $adb->dbType == "pgsql" ) {
+ $sequences = array(
+ "vtiger_leadsource_seq",
+ "vtiger_accounttype_seq",
+ "vtiger_industry_seq",
+ "vtiger_leadstatus_seq",
+ "vtiger_rating_seq",
+ "vtiger_licencekeystatus_seq",
+ "vtiger_opportunity_type_seq",
+ "vtiger_salutationtype_seq",
+ "vtiger_sales_stage_seq",
+ "vtiger_ticketstatus_seq",
+ "vtiger_ticketpriorities_seq",
+ "vtiger_ticketseverities_seq",
+ "vtiger_ticketcategories_seq",
+ "vtiger_duration_minutes_seq",
+ "vtiger_eventstatus_seq",
+ "vtiger_taskstatus_seq",
+ "vtiger_taskpriority_seq",
+ "vtiger_manufacturer_seq",
+ "vtiger_productcategory_seq",
+ "vtiger_activitytype_seq",
+ "vtiger_currency_seq",
+ "vtiger_faqcategories_seq",
+ "vtiger_usageunit_seq",
+ "vtiger_glacct_seq",
+ "vtiger_quotestage_seq",
+ "vtiger_carrier_seq",
+ "vtiger_taxclass_seq",
+ "vtiger_recurringtype_seq",
+ "vtiger_faqstatus_seq",
+ "vtiger_invoicestatus_seq",
+ "vtiger_postatus_seq",
+ "vtiger_sostatus_seq",
+ "vtiger_visibility_seq",
+ "vtiger_campaigntype_seq",
+ "vtiger_campaignstatus_seq",
+ "vtiger_expectedresponse_seq",
+ "vtiger_status_seq",
+ "vtiger_activity_view_seq",
+ "vtiger_lead_view_seq",
+ "vtiger_date_format_seq",
+ "vtiger_users_seq",
+ "vtiger_role_seq",
+ "vtiger_profile_seq",
+ "vtiger_field_seq",
+ "vtiger_def_org_share_seq",
+ "vtiger_datashare_relatedmodules_seq",
+ "vtiger_relatedlists_seq",
+ "vtiger_notificationscheduler_seq",
+ "vtiger_inventorynotification_seq",
+ "vtiger_currency_info_seq",
+ "vtiger_emailtemplates_seq",
+ "vtiger_inventory_tandc_seq",
+ "vtiger_selectquery_seq",
+ "vtiger_customview_seq",
+ "vtiger_crmentity_seq",
+ "vtiger_seactivityrel_seq",
+ "vtiger_freetags_seq",
+ "vtiger_shippingtaxinfo_seq",
+ "vtiger_inventorytaxinfo_seq"
+ );
+
+ foreach ($sequences as $sequence ) {
+ $log->info( "Creating sequence ".$sequence);
+ $adb->query( "CREATE SEQUENCE ".$sequence." INCREMENT BY 1 NO MAXVALUE NO MINVALUE CACHE 1;");
+ }
+ }
+
+
// TODO HTML
if($success==0)
die("Error: Tables not created. Table creation failed.\n");
More information about the vtigercrm-commits
mailing list