<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — DB Schema anomalies]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=7078</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=7078&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in DB Schema anomalies.]]></description>
		<lastBuildDate>Sun, 17 Dec 2017 17:28:13 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: DB Schema anomalies]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=30084#p30084</link>
			<description><![CDATA[<p><a href="https://bugs.mysql.com/bug.php?id=13794">MySQL Bugs #13794 TEXT cannot use empty string as default value</a></p><div class="quotebox"><blockquote><p>(It is) not a bug.<br />It is caused by the configuration file automatically generated by the configuration tool under Windows.<br />In the my.ini, sql-mode is set to STRICT_TRANS_TABLES by default, which causes this error.</p></blockquote></div>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Sun, 17 Dec 2017 17:28:13 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=30084#p30084</guid>
		</item>
		<item>
			<title><![CDATA[Re: DB Schema anomalies]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=29695#p29695</link>
			<description><![CDATA[<p>Why was the index:<br /></p><div class="codebox"><pre><code>UNIQUE KEY `name` (`name`,`rate`)</code></pre></div><p>removed from the <strong>0_tax_types</strong> table in FA 2.4 while it was there in FA 2.3?</p><p>Do we allow the same named tax with the same rate to appear more than once?</p><p>If so, how would we distinguish them in the select drop-down boxes?</p><p>@joe: what say you?</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Mon, 20 Nov 2017 16:33:18 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=29695#p29695</guid>
		</item>
		<item>
			<title><![CDATA[Re: DB Schema anomalies]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=29373#p29373</link>
			<description><![CDATA[<p>Schema update / synch scripts added to my repo - <a href="https://github.com/apmuthu/frontaccounting/commit/dd3e2a00d9071e8043e622e066eda5ec01e8690a">FA23</a>, <a href="https://github.com/apmuthu/frontac24/commit/95a1404931e462756544054d10a6b0005b3e8c0c">FA24</a>.</p><p>FA 2.4 Schema <a href="https://github.com/apmuthu/frontac24/commit/7f54bfe1e48c4acde4b497b6f92a59c792a300de">optimisations consolidated</a></p><p> - @joe/@itronics can vet it for inclusion in the core.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Tue, 31 Oct 2017 14:08:46 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=29373#p29373</guid>
		</item>
		<item>
			<title><![CDATA[Re: DB Schema anomalies]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=29361#p29361</link>
			<description><![CDATA[<p>In MySQL 5.0 and later, TEXT/BLOB fields <a href="https://stackoverflow.com/questions/3466872/why-cant-a-text-column-have-a-default-value-in-mysql">cannot have default values</a>.</p><p>The only case in FA where it occurs is in the <strong>sys_prefs</strong> table and that too only in FA 2.4.x:<br /></p><div class="codebox"><pre><code>`value` TEXT NOT NULL DEFAULT &#039;&#039;,</code></pre></div><p>It should be:<br /></p><div class="codebox"><pre><code>`value` TEXT NOT NULL,</code></pre></div><p>In FA 2.3.x it was:<br /></p><div class="codebox"><pre><code>`value` tinytext,</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Tue, 31 Oct 2017 09:35:09 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=29361#p29361</guid>
		</item>
		<item>
			<title><![CDATA[Re: DB Schema anomalies]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=29359#p29359</link>
			<description><![CDATA[<p>After cleaning up the entire standard Chart of Accounts, we are left with the following CHAR fields (whilst all else have been mostly changed to VARCHAR):<br /></p><div class="codebox"><pre><code>0_bank_accounts:  `bank_curr_code` char(3) NOT NULL DEFAULT &#039;&#039;,
0_crm_persons:  `lang` char(5) DEFAULT NULL,
0_currencies:  `curr_abrev` char(3) NOT NULL DEFAULT &#039;&#039;,
0_debtors_master:  `curr_code` char(3) NOT NULL DEFAULT &#039;&#039;,
0_exchange_rates:  `curr_code` char(3) NOT NULL DEFAULT &#039;&#039;,
0_journal:  `currency` char(3) NOT NULL DEFAULT &#039;&#039;,
0_prices:  `curr_abrev` char(3) NOT NULL DEFAULT &#039;&#039;,
0_stock_category:  `dflt_mb_flag` char(1) NOT NULL DEFAULT &#039;B&#039;,
0_stock_master:  `mb_flag` char(1) NOT NULL DEFAULT &#039;B&#039;,
0_stock_master:  `depreciation_method` char(1) NOT NULL DEFAULT &#039;S&#039;,
0_suppliers:  `curr_code` char(3) DEFAULT NULL,</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Tue, 31 Oct 2017 09:14:12 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=29359#p29359</guid>
		</item>
		<item>
			<title><![CDATA[DB Schema anomalies]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=29263#p29263</link>
			<description><![CDATA[<p>The PRIMARY KEY of the <strong>0_bom</strong> table in both FA 2.3 and FA 2.4 is part of the list below:<br /></p><div class="codebox"><pre><code>  PRIMARY KEY  (`parent`,`component`,`workcentre_added`,`loc_code`),
  KEY `component` (`component`),
  KEY `id` (`id`),
  KEY `loc_code` (`loc_code`),
  KEY `parent` (`parent`,`loc_code`),
  KEY `workcentre_added` (`workcentre_added`)</code></pre></div><p>It can be re-arranged like this to save an index that would then have become redundant:<br /></p><div class="codebox"><pre><code>  PRIMARY KEY  (`parent`,`loc_code`,`component`,`workcentre_added`),
  KEY `component` (`component`),
  KEY `id` (`id`),
  KEY `loc_code` (`loc_code`),
  KEY `workcentre_added` (`workcentre_added`)</code></pre></div><br /><p>Also why have the erstwhile VARCHAR fields like <strong>loc_code</strong> and some other fields now become CHAR in FA 2.4?</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Sat, 28 Oct 2017 05:31:17 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=29263#p29263</guid>
		</item>
	</channel>
</rss>
