<div dir="ltr">Just an update. I looked at the kmmsecurities and the table already had the pricePrecision column (<span style="white-space:pre"> </span>pricePrecision<span style="white-space:pre"> </span>smallint(5) UNSIGNED Null: No Default: None ).<div><br></div><div>I am build KMM again with debug enabled and I will see if I can get more info on my it's saying the column is missing when it is not.</div></div><br><div class="gmail_quote"><div dir="ltr">On Sun, Aug 26, 2018 at 8:27 AM Thomas Baumgart <<a href="mailto:thb@net-bembel.de">thb@net-bembel.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I am by far not a DB expert and can't really tell you what was happening. Since you mention you are at DB version 12, the missing column pricePrecision was introduced with DB version 11.<br>
<br>
The MYSQL DDL statement for the securities table is as follows:<br>
<br>
CREATE TABLE kmmSecurities (id varchar(32) NOT NULL, name text NOT NULL, symbol mediumtext, type smallint unsigned NOT NULL, typeString mediumtext, smallestAccountFraction varchar(24), pricePrecision smallint unsigned NOT NULL, tradingMarket mediumtext, tradingCurrency char(3), roundingMethod smallint unsigned NOT NULL DEFAULT 7, PRIMARY KEY (id)) ENGINE = InnoDB;<br>
<br>
<br>
I am not sure, how you can add a column on the fly. Make sure to assign a value of 4 for existing entries but don't supply a default for new values.<br>
<br>
Tony is right in what he mentioned. I am just not sure if that part my have been hit and is broken. As I don't use the DB backend I can't tell. Anyone else has ideas? <br>
<br>
Regards<br>
<br>
Thomas<br>
<br>
<br>
On Freitag, 24. August 2018 23:25:03 CEST El Cas wrote:<br>
<br>
> I just installed KMM from source (pull from *master* branch on *8/24/2018 @<br>
> 11:06 MDT*) and when I tried to log on to my DB I am get<br>
> <br>
> <br>
> <br>
> *Executed: SELECT ISOcode, name, type, typeString, symbol1, symbol2,<br>
> symbol3, symbolString, smallestCashFraction, smallestAccountFraction,<br>
> pricePrecision FROM kmmCurrencies ORDER BY ISOcode; Query error No 1054:<br>
> Unknown column 'pricePrecision' in 'field list' QMYSQL: Unable to execute<br>
> query*<br>
> In a previous email thread, Tony Bloomfield had mentioned that when KMM<br>
> opened a Database the Database Manager should detect the change in version<br>
> and create/delete/alter any table/columns as required, but as you can see<br>
> from the error above it's not doing it. Is there an update SQL script I can<br>
> run to update the schema for my 4.8 DB to work with 5.0?<br>
> <br>
> According to the the kmmfileinfo table it says I am using DB version *12* if<br>
> that helps determine what script(s) I need to run.<br>
> <br>
<br>
-- <br>
<br>
Regards<br>
<br>
Thomas Baumgart<br>
<br>
<a href="https://www.signal.org/" rel="noreferrer" target="_blank">https://www.signal.org/</a> Signal, the better WhatsApp<br>
-------------------------------------------------------------<br>
Mankind makes a lot of things wrong, but if you really want to<br>
screw up, you need to use a computer! (Juergen von der Lippe)<br>
-------------------------------------------------------------<br>
</blockquote></div>