<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — Frontaccounting Upgrade Error!]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=3306</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=3306&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Frontaccounting Upgrade Error!.]]></description>
		<lastBuildDate>Wed, 17 Oct 2012 06:48:57 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Frontaccounting Upgrade Error!]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=13822#p13822</link>
			<description><![CDATA[<p>Ok, thank you apmuthu. Seems the case is yet another unexplained mystery <img src="https://frontaccounting.com/punbb/img/smilies/smile.png" width="15" height="15" alt="smile" />.<br />Janusz</p>]]></description>
			<author><![CDATA[null@example.com (itronics)]]></author>
			<pubDate>Wed, 17 Oct 2012 06:48:57 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=13822#p13822</guid>
		</item>
		<item>
			<title><![CDATA[Re: Frontaccounting Upgrade Error!]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=13806#p13806</link>
			<description><![CDATA[<p>This was done by comparing the latest db structure to the clients failed state existing one. The FA project can by no means even attempt to provide a one size fits all solution in this case. This method was a last case best effort basis attempt that actually succeeded according to popsicles12.</p><p>SQLyog Ultimate has a DB Synch Wizard that compares 2 databases and spits out the one way sync SQL statements needed. Default core data can also be compared using the Data Synch Wizard and a similar SQL delete / update / insert set needed would be output.</p><p>In short, it is an unsupported case. The actual lessons from the initial failure were not captured by popsicles12 from his Mysql error logs and hence cannot enlighten us on the exact cause of failure.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Tue, 16 Oct 2012 14:21:43 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=13806#p13806</guid>
		</item>
		<item>
			<title><![CDATA[Re: Frontaccounting Upgrade Error!]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=13797#p13797</link>
			<description><![CDATA[<p>FA is responsible for upgrade procedures from one major version to the next. There is no way to support any random changes made in db scheme outside FA control. So, my question is: which exactly queries has failed in upgrade scripts?</p><p>Without clear answer to this question I don&#039;t know whether was this upgrade procedure failure or just unsupported case.</p><p>Janusz</p>]]></description>
			<author><![CDATA[null@example.com (itronics)]]></author>
			<pubDate>Tue, 16 Oct 2012 09:10:12 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=13797#p13797</guid>
		</item>
		<item>
			<title><![CDATA[Re: Frontaccounting Upgrade Error!]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=13791#p13791</link>
			<description><![CDATA[<p>Actually, what happens is when even one SQL statement of the alter*.sql files fail or are executed external to the attendant alter*.php files, the rest of the SQL statements are not executed and the successive dependant statements in later files too would fail.</p><p>Appended (no allowed attachments here) below is the contents of the <strong>upgrade</strong> sql file that popsicles12 used:</p><p>==============</p><p>ALTER TABLE `4_audit_trail` <br />&nbsp; &nbsp; DROP KEY `fiscal_year`, <br />&nbsp; &nbsp; ADD KEY `Seq`(`fiscal_year`,`gl_date`,`gl_seq`), <br />&nbsp; &nbsp; ADD KEY `Type_and_Number`(`type`,`trans_no`);</p><br /><br /><p>ALTER TABLE `4_bank_accounts` <br />&nbsp; &nbsp; CHANGE `account_code` `account_code` varchar(15)&nbsp; COLLATE latin1_swedish_ci NOT NULL DEFAULT &#039;&#039; first, <br />&nbsp; &nbsp; ADD KEY `account_code`(`account_code`);</p><br /><br /><p>ALTER TABLE `4_bank_trans` <br />&nbsp; &nbsp; CHANGE `bank_act` `bank_act` varchar(15)&nbsp; COLLATE latin1_swedish_ci NOT NULL DEFAULT &#039;&#039; after `trans_no`, <br />&nbsp; &nbsp; ADD KEY `bank_act_2`(`bank_act`,`reconciled`), <br />&nbsp; &nbsp; ADD KEY `bank_act_3`(`bank_act`,`trans_date`);</p><br /><br /><p>ALTER TABLE `4_bom` <br />&nbsp; &nbsp; DROP KEY `Parent_2`;</p><br /><br /><p>ALTER TABLE `4_budget_trans` <br />&nbsp; &nbsp; CHANGE `account` `account` varchar(15)&nbsp; COLLATE latin1_swedish_ci NOT NULL DEFAULT &#039;&#039; after `tran_date`, <br />&nbsp; &nbsp; ADD KEY `Account`(`account`,`tran_date`,`dimension_id`,`dimension2_id`);</p><br /><br /><p>ALTER TABLE `4_chart_class` <br />&nbsp; &nbsp; CHANGE `cid` `cid` varchar(3)&nbsp; COLLATE latin1_swedish_ci NOT NULL first;</p><br /><br /><p>ALTER TABLE `4_chart_master` <br />&nbsp; &nbsp; CHANGE `account_code` `account_code` varchar(15)&nbsp; COLLATE latin1_swedish_ci NOT NULL DEFAULT &#039;&#039; first, <br />&nbsp; &nbsp; CHANGE `account_code2` `account_code2` varchar(15)&nbsp; COLLATE latin1_swedish_ci NOT NULL DEFAULT &#039;&#039; after `account_code`, <br />&nbsp; &nbsp; CHANGE `account_type` `account_type` varchar(10)&nbsp; COLLATE latin1_swedish_ci NOT NULL DEFAULT &#039;0&#039; after `account_name`, <br />&nbsp; &nbsp; DROP KEY `account_code`, <br />&nbsp; &nbsp; ADD KEY `accounts_by_type`(`account_type`,`account_code`);</p><br /><br /><p>ALTER TABLE `4_chart_types` <br />&nbsp; &nbsp; CHANGE `id` `id` varchar(10)&nbsp; COLLATE latin1_swedish_ci NOT NULL first, <br />&nbsp; &nbsp; CHANGE `class_id` `class_id` varchar(3)&nbsp; COLLATE latin1_swedish_ci NOT NULL DEFAULT &#039;&#039; after `name`, <br />&nbsp; &nbsp; CHANGE `parent` `parent` varchar(10)&nbsp; COLLATE latin1_swedish_ci NOT NULL DEFAULT &#039;-1&#039; after `class_id`, <br />&nbsp; &nbsp; ADD KEY `class_id`(`class_id`);</p><br /><br /><p>ALTER TABLE `4_comments` <br />&nbsp; &nbsp; ADD KEY `type_and_id`(`type`,`id`);</p><br /><br /><p>CREATE TABLE `4_crm_categories`(<br />&nbsp; &nbsp; `id` int(11) NOT NULL&nbsp; auto_increment COMMENT &#039;pure technical key&#039; , <br />&nbsp; &nbsp; `type` varchar(20) COLLATE latin1_swedish_ci NOT NULL&nbsp; COMMENT &#039;contact type e.g. customer&#039; , <br />&nbsp; &nbsp; `action` varchar(20) COLLATE latin1_swedish_ci NOT NULL&nbsp; COMMENT &#039;detailed usage e.g. department&#039; , <br />&nbsp; &nbsp; `name` varchar(30) COLLATE latin1_swedish_ci NOT NULL&nbsp; COMMENT &#039;for category selector&#039; , <br />&nbsp; &nbsp; `description` tinytext COLLATE latin1_swedish_ci NOT NULL&nbsp; COMMENT &#039;usage description&#039; , <br />&nbsp; &nbsp; `system` tinyint(1) NOT NULL&nbsp; DEFAULT 0 COMMENT &#039;nonzero for core system usage&#039; , <br />&nbsp; &nbsp; `inactive` tinyint(1) NOT NULL&nbsp; DEFAULT 0 , <br />&nbsp; &nbsp; PRIMARY KEY (`id`) , <br />&nbsp; &nbsp; UNIQUE KEY `type`(`type`,`action`) , <br />&nbsp; &nbsp; UNIQUE KEY `type_2`(`type`,`name`) <br />) ENGINE=InnoDB DEFAULT CHARSET=&#039;latin1&#039;;</p><br /><br /><p>CREATE TABLE `4_crm_contacts`(<br />&nbsp; &nbsp; `id` int(11) NOT NULL&nbsp; auto_increment , <br />&nbsp; &nbsp; `person_id` int(11) NOT NULL&nbsp; DEFAULT 0 COMMENT &#039;foreign key to crm_contacts&#039; , <br />&nbsp; &nbsp; `type` varchar(20) COLLATE latin1_swedish_ci NOT NULL&nbsp; COMMENT &#039;foreign key to crm_categories&#039; , <br />&nbsp; &nbsp; `action` varchar(20) COLLATE latin1_swedish_ci NOT NULL&nbsp; COMMENT &#039;foreign key to crm_categories&#039; , <br />&nbsp; &nbsp; `entity_id` varchar(11) COLLATE latin1_swedish_ci NULL&nbsp; COMMENT &#039;entity id in related class table&#039; , <br />&nbsp; &nbsp; PRIMARY KEY (`id`) , <br />&nbsp; &nbsp; KEY `type`(`type`,`action`) <br />) ENGINE=InnoDB DEFAULT CHARSET=&#039;latin1&#039;;</p><br /><br /><p>CREATE TABLE `4_crm_persons`(<br />&nbsp; &nbsp; `id` int(11) NOT NULL&nbsp; auto_increment , <br />&nbsp; &nbsp; `ref` varchar(30) COLLATE latin1_swedish_ci NOT NULL&nbsp; , <br />&nbsp; &nbsp; `name` varchar(60) COLLATE latin1_swedish_ci NOT NULL&nbsp; , <br />&nbsp; &nbsp; `name2` varchar(60) COLLATE latin1_swedish_ci NULL&nbsp; , <br />&nbsp; &nbsp; `address` tinytext COLLATE latin1_swedish_ci NULL&nbsp; , <br />&nbsp; &nbsp; `phone` varchar(30) COLLATE latin1_swedish_ci NULL&nbsp; , <br />&nbsp; &nbsp; `phone2` varchar(30) COLLATE latin1_swedish_ci NULL&nbsp; , <br />&nbsp; &nbsp; `fax` varchar(30) COLLATE latin1_swedish_ci NULL&nbsp; , <br />&nbsp; &nbsp; `email` varchar(100) COLLATE latin1_swedish_ci NULL&nbsp; , <br />&nbsp; &nbsp; `lang` char(5) COLLATE latin1_swedish_ci NULL&nbsp; , <br />&nbsp; &nbsp; `notes` tinytext COLLATE latin1_swedish_ci NOT NULL&nbsp; , <br />&nbsp; &nbsp; `inactive` tinyint(1) NOT NULL&nbsp; DEFAULT 0 , <br />&nbsp; &nbsp; PRIMARY KEY (`id`) , <br />&nbsp; &nbsp; KEY `ref`(`ref`) <br />) ENGINE=InnoDB DEFAULT CHARSET=&#039;latin1&#039;;</p><br /><br /><p>ALTER TABLE `4_cust_allocations` <br />&nbsp; &nbsp; ADD KEY `From`(`trans_type_from`,`trans_no_from`), <br />&nbsp; &nbsp; ADD KEY `To`(`trans_type_to`,`trans_no_to`);</p><br /><br /><p>ALTER TABLE `4_cust_branch` <br />&nbsp; &nbsp; CHANGE `contact_name` `contact_name` varchar(60)&nbsp; COLLATE latin1_swedish_ci NOT NULL DEFAULT &#039;&#039; after `salesman`, <br />&nbsp; &nbsp; CHANGE `default_location` `default_location` varchar(5)&nbsp; COLLATE latin1_swedish_ci NOT NULL DEFAULT &#039;&#039; after `contact_name`, <br />&nbsp; &nbsp; CHANGE `tax_group_id` `tax_group_id` int(11)&nbsp; &nbsp;NULL after `default_location`, <br />&nbsp; &nbsp; CHANGE `sales_account` `sales_account` varchar(15)&nbsp; COLLATE latin1_swedish_ci NOT NULL DEFAULT &#039;&#039; after `tax_group_id`, <br />&nbsp; &nbsp; CHANGE `sales_discount_account` `sales_discount_account` varchar(15)&nbsp; COLLATE latin1_swedish_ci NOT NULL DEFAULT &#039;&#039; after `sales_account`, <br />&nbsp; &nbsp; CHANGE `receivables_account` `receivables_account` varchar(15)&nbsp; COLLATE latin1_swedish_ci NOT NULL DEFAULT &#039;&#039; after `sales_discount_account`, <br />&nbsp; &nbsp; CHANGE `payment_discount_account` `payment_discount_account` varchar(15)&nbsp; COLLATE latin1_swedish_ci NOT NULL DEFAULT &#039;&#039; after `receivables_account`, <br />&nbsp; &nbsp; CHANGE `default_ship_via` `default_ship_via` int(11)&nbsp; &nbsp;NOT NULL DEFAULT 1 after `payment_discount_account`, <br />&nbsp; &nbsp; CHANGE `disable_trans` `disable_trans` tinyint(4)&nbsp; &nbsp;NOT NULL DEFAULT 0 after `default_ship_via`, <br />&nbsp; &nbsp; CHANGE `br_post_address` `br_post_address` tinytext&nbsp; COLLATE latin1_swedish_ci NOT NULL after `disable_trans`, <br />&nbsp; &nbsp; CHANGE `group_no` `group_no` int(11)&nbsp; &nbsp;NOT NULL DEFAULT 0 after `br_post_address`, <br />&nbsp; &nbsp; CHANGE `notes` `notes` tinytext&nbsp; COLLATE latin1_swedish_ci NOT NULL after `group_no`, <br />&nbsp; &nbsp; CHANGE `inactive` `inactive` tinyint(1)&nbsp; &nbsp;NOT NULL DEFAULT 0 after `notes`, <br />&nbsp; &nbsp; DROP COLUMN `phone`, <br />&nbsp; &nbsp; DROP COLUMN `phone2`, <br />&nbsp; &nbsp; DROP COLUMN `fax`, <br />&nbsp; &nbsp; DROP COLUMN `email`, <br />&nbsp; &nbsp; DROP KEY `br_name`, <br />&nbsp; &nbsp; ADD KEY `branch_ref`(`branch_ref`), <br />&nbsp; &nbsp; ADD KEY `group_no`(`group_no`);</p><br /><br /><p>ALTER TABLE `4_debtor_trans` <br />&nbsp; &nbsp; CHANGE `dimension_id` `dimension_id` int(11)&nbsp; &nbsp;NOT NULL DEFAULT 0 after `ship_via`, <br />&nbsp; &nbsp; CHANGE `dimension2_id` `dimension2_id` int(11)&nbsp; &nbsp;NOT NULL DEFAULT 0 after `dimension_id`, <br />&nbsp; &nbsp; ADD COLUMN `payment_terms` int(11)&nbsp; &nbsp;NULL after `dimension2_id`, <br />&nbsp; &nbsp; DROP COLUMN `trans_link`, <br />&nbsp; &nbsp; DROP KEY `PRIMARY`, add PRIMARY KEY(`type`,`trans_no`), <br />&nbsp; &nbsp; ADD KEY `tran_date`(`tran_date`);</p><br /><br /><p>ALTER TABLE `4_debtor_trans_details` <br />&nbsp; &nbsp; ADD COLUMN `src_id` int(11)&nbsp; &nbsp;NOT NULL after `qty_done`, <br />&nbsp; &nbsp; ADD KEY `src_id`(`src_id`), <br />&nbsp; &nbsp; ADD KEY `Transaction`(`debtor_trans_type`,`debtor_trans_no`);</p><br /><br /><p>ALTER TABLE `4_debtors_master` <br />&nbsp; &nbsp; CHANGE `tax_id` `tax_id` varchar(55)&nbsp; COLLATE latin1_swedish_ci NOT NULL DEFAULT &#039;&#039; after `address`, <br />&nbsp; &nbsp; CHANGE `curr_code` `curr_code` char(3)&nbsp; COLLATE latin1_swedish_ci NOT NULL DEFAULT &#039;&#039; after `tax_id`, <br />&nbsp; &nbsp; CHANGE `sales_type` `sales_type` int(11)&nbsp; &nbsp;NOT NULL DEFAULT 1 after `curr_code`, <br />&nbsp; &nbsp; CHANGE `dimension_id` `dimension_id` int(11)&nbsp; &nbsp;NOT NULL DEFAULT 0 after `sales_type`, <br />&nbsp; &nbsp; CHANGE `dimension2_id` `dimension2_id` int(11)&nbsp; &nbsp;NOT NULL DEFAULT 0 after `dimension_id`, <br />&nbsp; &nbsp; CHANGE `credit_status` `credit_status` int(11)&nbsp; &nbsp;NOT NULL DEFAULT 0 after `dimension2_id`, <br />&nbsp; &nbsp; CHANGE `payment_terms` `payment_terms` int(11)&nbsp; &nbsp;NULL after `credit_status`, <br />&nbsp; &nbsp; CHANGE `discount` `discount` double&nbsp; &nbsp;NOT NULL DEFAULT 0 after `payment_terms`, <br />&nbsp; &nbsp; CHANGE `pymt_discount` `pymt_discount` double&nbsp; &nbsp;NOT NULL DEFAULT 0 after `discount`, <br />&nbsp; &nbsp; CHANGE `credit_limit` `credit_limit` float&nbsp; &nbsp;NOT NULL DEFAULT 1000 after `pymt_discount`, <br />&nbsp; &nbsp; CHANGE `notes` `notes` tinytext&nbsp; COLLATE latin1_swedish_ci NOT NULL after `credit_limit`, <br />&nbsp; &nbsp; CHANGE `inactive` `inactive` tinyint(1)&nbsp; &nbsp;NOT NULL DEFAULT 0 after `notes`, <br />&nbsp; &nbsp; DROP COLUMN `email`, <br />&nbsp; &nbsp; ADD UNIQUE KEY `debtor_ref`(`debtor_ref`), <br />&nbsp; &nbsp; DROP KEY `name`, add KEY `name`(`name`);</p><br /><br /><p>ALTER TABLE `4_dimensions` <br />&nbsp; &nbsp; ADD KEY `date_`(`date_`), <br />&nbsp; &nbsp; ADD KEY `due_date`(`due_date`), <br />&nbsp; &nbsp; ADD KEY `type_`(`type_`);</p><br /><br /><p>ALTER TABLE `4_fiscal_year` <br />&nbsp; &nbsp; ADD UNIQUE KEY `begin`(`begin`), <br />&nbsp; &nbsp; ADD UNIQUE KEY `end`(`end`);</p><br /><br /><p>ALTER TABLE `4_gl_trans` <br />&nbsp; &nbsp; CHANGE `account` `account` varchar(15)&nbsp; COLLATE latin1_swedish_ci NOT NULL DEFAULT &#039;&#039; after `tran_date`, <br />&nbsp; &nbsp; ADD KEY `account_and_tran_date`(`account`,`tran_date`), <br />&nbsp; &nbsp; ADD KEY `dimension2_id`(`dimension2_id`), <br />&nbsp; &nbsp; ADD KEY `dimension_id`(`dimension_id`), <br />&nbsp; &nbsp; ADD KEY `tran_date`(`tran_date`);</p><br /><br /><p>ALTER TABLE `4_grn_batch` <br />&nbsp; &nbsp; ADD KEY `delivery_date`(`delivery_date`), <br />&nbsp; &nbsp; ADD KEY `purch_order_no`(`purch_order_no`);</p><br /><br /><p>ALTER TABLE `4_grn_items` <br />&nbsp; &nbsp; ADD KEY `grn_batch_id`(`grn_batch_id`);</p><br /><br /><p>ALTER TABLE `4_item_codes` <br />&nbsp; &nbsp; ADD KEY `item_code`(`item_code`);</p><br /><br /><p>ALTER TABLE `4_purch_order_details` <br />&nbsp; &nbsp; ADD KEY `order`(`order_no`,`po_detail_item`);</p><br /><br /><p>ALTER TABLE `4_purch_orders` <br />&nbsp; &nbsp; ADD COLUMN `total` double&nbsp; &nbsp;NOT NULL DEFAULT 0 after `delivery_address`, <br />&nbsp; &nbsp; ADD COLUMN `tax_included` tinyint(1)&nbsp; &nbsp;NOT NULL DEFAULT 0 after `total`, <br />&nbsp; &nbsp; ADD KEY `ord_date`(`ord_date`);</p><br /><br /><p>ALTER TABLE `4_quick_entries` <br />&nbsp; &nbsp; ADD COLUMN `bal_type` tinyint(1)&nbsp; &nbsp;NOT NULL DEFAULT 0 after `base_desc`;</p><br /><br /><p>ALTER TABLE `4_quick_entry_lines` <br />&nbsp; &nbsp; CHANGE `dest_id` `dest_id` varchar(15)&nbsp; COLLATE latin1_swedish_ci NOT NULL DEFAULT &#039;&#039; after `action`;</p><br /><br /><p>ALTER TABLE `4_refs` <br />&nbsp; &nbsp; ADD KEY `Type_and_Reference`(`type`,`reference`);</p><br /><br /><p>ALTER TABLE `4_sales_order_details` <br />&nbsp; &nbsp; ADD KEY `sorder`(`trans_type`,`order_no`);</p><br /><br /><p>ALTER TABLE `4_sales_orders` <br />&nbsp; &nbsp; ADD COLUMN `payment_terms` int(11)&nbsp; &nbsp;NULL after `delivery_date`, <br />&nbsp; &nbsp; ADD COLUMN `total` double&nbsp; &nbsp;NOT NULL DEFAULT 0 after `payment_terms`;</p><br /><br /><p>ALTER TABLE `4_stock_category` <br />&nbsp; &nbsp; CHANGE `dflt_sales_act` `dflt_sales_act` varchar(15)&nbsp; COLLATE latin1_swedish_ci NOT NULL DEFAULT &#039;&#039; after `dflt_mb_flag`, <br />&nbsp; &nbsp; CHANGE `dflt_cogs_act` `dflt_cogs_act` varchar(15)&nbsp; COLLATE latin1_swedish_ci NOT NULL DEFAULT &#039;&#039; after `dflt_sales_act`, <br />&nbsp; &nbsp; CHANGE `dflt_inventory_act` `dflt_inventory_act` varchar(15)&nbsp; COLLATE latin1_swedish_ci NOT NULL DEFAULT &#039;&#039; after `dflt_cogs_act`, <br />&nbsp; &nbsp; CHANGE `dflt_adjustment_act` `dflt_adjustment_act` varchar(15)&nbsp; COLLATE latin1_swedish_ci NOT NULL DEFAULT &#039;&#039; after `dflt_inventory_act`, <br />&nbsp; &nbsp; CHANGE `dflt_assembly_act` `dflt_assembly_act` varchar(15)&nbsp; COLLATE latin1_swedish_ci NOT NULL DEFAULT &#039;&#039; after `dflt_adjustment_act`;</p><br /><br /><p>ALTER TABLE `4_stock_master` <br />&nbsp; &nbsp; CHANGE `sales_account` `sales_account` varchar(15)&nbsp; COLLATE latin1_swedish_ci NOT NULL DEFAULT &#039;&#039; after `mb_flag`, <br />&nbsp; &nbsp; CHANGE `cogs_account` `cogs_account` varchar(15)&nbsp; COLLATE latin1_swedish_ci NOT NULL DEFAULT &#039;&#039; after `sales_account`, <br />&nbsp; &nbsp; CHANGE `inventory_account` `inventory_account` varchar(15)&nbsp; COLLATE latin1_swedish_ci NOT NULL DEFAULT &#039;&#039; after `cogs_account`, <br />&nbsp; &nbsp; CHANGE `adjustment_account` `adjustment_account` varchar(15)&nbsp; COLLATE latin1_swedish_ci NOT NULL DEFAULT &#039;&#039; after `inventory_account`, <br />&nbsp; &nbsp; CHANGE `assembly_account` `assembly_account` varchar(15)&nbsp; COLLATE latin1_swedish_ci NOT NULL DEFAULT &#039;&#039; after `adjustment_account`, <br />&nbsp; &nbsp; ADD COLUMN `editable` tinyint(1)&nbsp; &nbsp;NOT NULL DEFAULT 0 after `no_sale`;</p><br /><br /><p>ALTER TABLE `4_stock_moves` <br />&nbsp; &nbsp; ADD KEY `Move`(`stock_id`,`loc_code`,`tran_date`);</p><br /><br /><p>ALTER TABLE `4_supp_allocations` <br />&nbsp; &nbsp; ADD KEY `From`(`trans_type_from`,`trans_no_from`), <br />&nbsp; &nbsp; ADD KEY `To`(`trans_type_to`,`trans_no_to`);</p><br /><br /><p>ALTER TABLE `4_supp_invoice_items` <br />&nbsp; &nbsp; CHANGE `gl_code` `gl_code` varchar(15)&nbsp; COLLATE latin1_swedish_ci NOT NULL DEFAULT &#039;&#039; after `supp_trans_type`, <br />&nbsp; &nbsp; ADD KEY `Transaction`(`supp_trans_type`,`supp_trans_no`,`stock_id`);</p><br /><br /><p>ALTER TABLE `4_supp_trans` <br />&nbsp; &nbsp; ADD COLUMN `tax_included` tinyint(1)&nbsp; &nbsp;NOT NULL DEFAULT 0 after `alloc`, <br />&nbsp; &nbsp; DROP KEY `PRIMARY`, add PRIMARY KEY(`type`,`trans_no`), <br />&nbsp; &nbsp; ADD KEY `tran_date`(`tran_date`);</p><br /><br /><p>ALTER TABLE `4_suppliers` <br />&nbsp; &nbsp; CHANGE `gst_no` `gst_no` varchar(25)&nbsp; COLLATE latin1_swedish_ci NOT NULL DEFAULT &#039;&#039; after `supp_address`, <br />&nbsp; &nbsp; CHANGE `contact` `contact` varchar(60)&nbsp; COLLATE latin1_swedish_ci NOT NULL DEFAULT &#039;&#039; after `gst_no`, <br />&nbsp; &nbsp; CHANGE `supp_account_no` `supp_account_no` varchar(40)&nbsp; COLLATE latin1_swedish_ci NOT NULL DEFAULT &#039;&#039; after `contact`, <br />&nbsp; &nbsp; CHANGE `website` `website` varchar(100)&nbsp; COLLATE latin1_swedish_ci NOT NULL DEFAULT &#039;&#039; after `supp_account_no`, <br />&nbsp; &nbsp; CHANGE `bank_account` `bank_account` varchar(60)&nbsp; COLLATE latin1_swedish_ci NOT NULL DEFAULT &#039;&#039; after `website`, <br />&nbsp; &nbsp; CHANGE `curr_code` `curr_code` char(3)&nbsp; COLLATE latin1_swedish_ci NULL after `bank_account`, <br />&nbsp; &nbsp; CHANGE `payment_terms` `payment_terms` int(11)&nbsp; &nbsp;NULL after `curr_code`, <br />&nbsp; &nbsp; ADD COLUMN `tax_included` tinyint(1)&nbsp; &nbsp;NOT NULL DEFAULT 0 after `payment_terms`, <br />&nbsp; &nbsp; CHANGE `dimension_id` `dimension_id` int(11)&nbsp; &nbsp;NULL DEFAULT 0 after `tax_included`, <br />&nbsp; &nbsp; CHANGE `dimension2_id` `dimension2_id` int(11)&nbsp; &nbsp;NULL DEFAULT 0 after `dimension_id`, <br />&nbsp; &nbsp; CHANGE `tax_group_id` `tax_group_id` int(11)&nbsp; &nbsp;NULL after `dimension2_id`, <br />&nbsp; &nbsp; CHANGE `credit_limit` `credit_limit` double&nbsp; &nbsp;NOT NULL DEFAULT 0 after `tax_group_id`, <br />&nbsp; &nbsp; CHANGE `purchase_account` `purchase_account` varchar(15)&nbsp; COLLATE latin1_swedish_ci NOT NULL DEFAULT &#039;&#039; after `credit_limit`, <br />&nbsp; &nbsp; CHANGE `payable_account` `payable_account` varchar(15)&nbsp; COLLATE latin1_swedish_ci NOT NULL DEFAULT &#039;&#039; after `purchase_account`, <br />&nbsp; &nbsp; CHANGE `payment_discount_account` `payment_discount_account` varchar(15)&nbsp; COLLATE latin1_swedish_ci NOT NULL DEFAULT &#039;&#039; after `payable_account`, <br />&nbsp; &nbsp; CHANGE `notes` `notes` tinytext&nbsp; COLLATE latin1_swedish_ci NOT NULL after `payment_discount_account`, <br />&nbsp; &nbsp; CHANGE `inactive` `inactive` tinyint(1)&nbsp; &nbsp;NOT NULL DEFAULT 0 after `notes`, <br />&nbsp; &nbsp; DROP COLUMN `phone`, <br />&nbsp; &nbsp; DROP COLUMN `phone2`, <br />&nbsp; &nbsp; DROP COLUMN `fax`, <br />&nbsp; &nbsp; DROP COLUMN `email`, <br />&nbsp; &nbsp; ADD KEY `supp_ref`(`supp_ref`);</p><br /><br /><p>CREATE TABLE `4_sys_prefs`(<br />&nbsp; &nbsp; `name` varchar(35) COLLATE latin1_swedish_ci NOT NULL&nbsp; DEFAULT &#039;&#039; , <br />&nbsp; &nbsp; `category` varchar(30) COLLATE latin1_swedish_ci NULL&nbsp; , <br />&nbsp; &nbsp; `type` varchar(20) COLLATE latin1_swedish_ci NOT NULL&nbsp; DEFAULT &#039;&#039; , <br />&nbsp; &nbsp; `length` smallint(6) NULL&nbsp; , <br />&nbsp; &nbsp; `value` tinytext COLLATE latin1_swedish_ci NULL&nbsp; , <br />&nbsp; &nbsp; PRIMARY KEY (`name`) , <br />&nbsp; &nbsp; KEY `category`(`category`) <br />) ENGINE=MyISAM DEFAULT CHARSET=&#039;latin1&#039;;</p><br /><br /><p>ALTER TABLE `4_tag_associations` <br />&nbsp; &nbsp; CHANGE `record_id` `record_id` varchar(15)&nbsp; COLLATE latin1_swedish_ci NOT NULL first;</p><br /><br /><p>ALTER TABLE `4_tax_types` <br />&nbsp; &nbsp; CHANGE `sales_gl_code` `sales_gl_code` varchar(15)&nbsp; COLLATE latin1_swedish_ci NOT NULL DEFAULT &#039;&#039; after `rate`, <br />&nbsp; &nbsp; CHANGE `purchasing_gl_code` `purchasing_gl_code` varchar(15)&nbsp; COLLATE latin1_swedish_ci NOT NULL DEFAULT &#039;&#039; after `sales_gl_code`;</p><br /><br /><p>ALTER TABLE `4_trans_tax_details` <br />&nbsp; &nbsp; ADD KEY `tran_date`(`tran_date`), <br />&nbsp; &nbsp; ADD KEY `Type_and_Number`(`trans_type`,`trans_no`);</p><br /><br /><p>ALTER TABLE `4_useronline` <br />&nbsp; &nbsp; ADD KEY `ip`(`ip`);</p><br /><br /><p>ALTER TABLE `4_wo_issues` <br />&nbsp; &nbsp; ADD KEY `workorder_id`(`workorder_id`);</p><br /><br /><p>ALTER TABLE `4_wo_manufacture` <br />&nbsp; &nbsp; ADD KEY `workorder_id`(`workorder_id`);</p><br /><br /><p>ALTER TABLE `4_wo_requirements` <br />&nbsp; &nbsp; ADD KEY `workorder_id`(`workorder_id`);</p><p>=============</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Tue, 16 Oct 2012 03:58:28 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=13791#p13791</guid>
		</item>
		<item>
			<title><![CDATA[Re: Frontaccounting Upgrade Error!]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=13782#p13782</link>
			<description><![CDATA[<p>Ok guys, so what was the real reason of popsicles12&#039;s problem ? Why he couldn&#039;t upgrade just with upgrade routine provided in 2.3?<br />Janusz</p>]]></description>
			<author><![CDATA[null@example.com (itronics)]]></author>
			<pubDate>Mon, 15 Oct 2012 15:41:24 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=13782#p13782</guid>
		</item>
		<item>
			<title><![CDATA[Re: Frontaccounting Upgrade Error!]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=13779#p13779</link>
			<description><![CDATA[<p>Epilogue: <strong>popsicles12</strong> contacted me offiline sending me the sql dump on one database and I found that many tables had to be altered for field types / sizes.</p><p>Free Advice and Free Diff File Sent: </p><div class="quotebox"><blockquote><p>Use the upgrade sql that I sent you in phpMyAdmin on the specific database (after taking a backup) and you will find the database upgraded correctly.</p></blockquote></div><p><strong>popsicles12</strong> then did so appropriately and had this to say: </p><div class="quotebox"><blockquote><p>Thanks you so very much. The upgrade is done. I had to use the content of the table sys_pref in the 2.3 sql script that came with the 2.3.11 to fill in the data for the newly created table and then change the version number to 2.3rc, then I could login. It is working now.<br />Thanks so much, I really appreciate your contribution.</p></blockquote></div><p>I do hope this will serve to assist others in a similar throe. <strong>popsicles12</strong> bravado and persistence saw him thru.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Mon, 15 Oct 2012 08:36:43 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=13779#p13779</guid>
		</item>
		<item>
			<title><![CDATA[Re: Frontaccounting Upgrade Error!]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=13725#p13725</link>
			<description><![CDATA[<p>Contact me offline if you are still stuck - will need schema dump of all databases - zipped. Later will need data dump of standard data tables alone - zipped. Also see if you are using legacy roles or not.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Tue, 09 Oct 2012 13:14:14 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=13725#p13725</guid>
		</item>
		<item>
			<title><![CDATA[Re: Frontaccounting Upgrade Error!]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=13720#p13720</link>
			<description><![CDATA[<p>Hello Janusz,<br />I commented out the default company but the login page will not display on the browser. it was showing error of not connecting to the default database.<br />If I may ask, since there is a difference on the database schema of the default company and the other companies as the default company has 79 tables while the other companies has 75 tables, how do I make the other companies upgrade to 79 tables. The missing tables as as follows; 0_crm_category, 0_crm_contacts, 0_crm_persons and 0_sys_prefs.</p><p>What if I create one of the companies with the 2.3 database schema and dump the database, will it upgrade? please help out.</p><p>thanks</p><p>Popsicles12.</p>]]></description>
			<author><![CDATA[null@example.com (popsicles12)]]></author>
			<pubDate>Tue, 09 Oct 2012 11:44:58 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=13720#p13720</guid>
		</item>
		<item>
			<title><![CDATA[Re: Frontaccounting Upgrade Error!]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=13714#p13714</link>
			<description><![CDATA[<p>Using <a href="http://www.razorsql.com">RazorSQL</a>, <a href="http://www.webyog.com">SQLyog Ultimate</a> or <a href="http://www.navicat.com">Navicat Premium</a> you can connect to and synch all companies to the existing default company&#039;s schema or create a dummy database with the contents of the latest en_US-new.sql file and check out the diffs and sync from there. As for the data diffs, it is a bit more tricky as standard data elements only must be considered. That is why I preferred a separate schema file and standard data sql file besides demo data sql file. For COAs only the standard data sql file needs to be different!</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Tue, 09 Oct 2012 02:04:06 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=13714#p13714</guid>
		</item>
		<item>
			<title><![CDATA[Re: Frontaccounting Upgrade Error!]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=13708#p13708</link>
			<description><![CDATA[<p>Seems your case is more complex than expected. Seems the original proces failed on first company, but the others could be consistent. You can try following last resort procedure:<br />. comment out the first company in config_db.php temporarily;<br />. retry upgrade after login to admin account on the first (not commented out) company;<br />. if all will go right just uncommnet first company and you are done.<br />Before starting above procedure I strongly recommend detailed inspection of all companies database schemes - all should be identical to sheme used in version&nbsp; 2.2 (providing you have started upgrade from 2.2).<br />Janusz</p>]]></description>
			<author><![CDATA[null@example.com (itronics)]]></author>
			<pubDate>Mon, 08 Oct 2012 20:41:35 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=13708#p13708</guid>
		</item>
		<item>
			<title><![CDATA[Re: Frontaccounting Upgrade Error!]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=13702#p13702</link>
			<description><![CDATA[<p>hello Janusz,</p><p>the schema diff between the default company and the other companies are as follows:</p><p>the default company has &quot;0_crm_category, 0_crm_contacts, 0_crm_persons and 0_sys_prefs but the other companies does not have them. </p><p>What do I do next?</p><p>thanks.</p><p>Popsicles12</p>]]></description>
			<author><![CDATA[null@example.com (popsicles12)]]></author>
			<pubDate>Mon, 08 Oct 2012 16:50:42 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=13702#p13702</guid>
		</item>
		<item>
			<title><![CDATA[Re: Frontaccounting Upgrade Error!]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=13700#p13700</link>
			<description><![CDATA[<p>Do a db schema diff check between the default company and the other companies.... or change the field value to be 2.3rc in each of the companies databases / tables</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Mon, 08 Oct 2012 14:27:53 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=13700#p13700</guid>
		</item>
		<item>
			<title><![CDATA[Re: Frontaccounting Upgrade Error!]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=13693#p13693</link>
			<description><![CDATA[<p>Hello Janusz,</p><p>Thanks for your response.</p><p>I followed the procedure you gave me by going to the *_sys_pref table to manually change the Version number to 2.3rc. On changing it, the default company worked but the other companies are still showing the error &quot;Access to application has been blocked until database upgrade is completed by system administrator.&quot;<br />How do I make the other companies work since it is a multi-company setup.</p><p>Thanks so very much</p><p>Popsicles12</p>]]></description>
			<author><![CDATA[null@example.com (popsicles12)]]></author>
			<pubDate>Mon, 08 Oct 2012 10:48:58 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=13693#p13693</guid>
		</item>
		<item>
			<title><![CDATA[Re: Frontaccounting Upgrade Error!]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=13685#p13685</link>
			<description><![CDATA[<p>The sql files in 2.3.11 are corect. This <strong>stable</strong> branch <img src="https://frontaccounting.com/punbb/img/smilies/wink.png" width="15" height="15" alt="wink" />.<br />Janusz</p>]]></description>
			<author><![CDATA[null@example.com (itronics)]]></author>
			<pubDate>Mon, 08 Oct 2012 07:57:06 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=13685#p13685</guid>
		</item>
		<item>
			<title><![CDATA[Re: Frontaccounting Upgrade Error!]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=13667#p13667</link>
			<description><![CDATA[<p>Please compare the existing sql dump for a new company with it&#039;s standard (non demo) data with that from the sql/en_US-new.sql file - it is possible that a few of the alter*.sql files did not go thru correctly. Also check the list of entries in each relevant alter*.sql file in order to see if they were missed out in the main en_US-new.sql file. This info is in the light of mismatched sql files corrected in <a href="https://frontaccounting.hg.sourceforge.net/hgweb/frontaccounting/frontaccounting/rev/f000c1c35d97">Mercurial Changeset 3076</a> for the unstable branch.</p><p>In general, when any change is done to the database - schema or standard data - it should be faithfully propagated to the necessary alter*.sql file and the demo sql file as well. It is possible that some changes may solely reside in the demo sql file alone!</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Sun, 07 Oct 2012 04:26:55 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=13667#p13667</guid>
		</item>
	</channel>
</rss>
