1. Check which version of the MDA database schema that you are currently running. This can be done by either:

  * opening a console or command prompt and issuing "mda --status". Check the row labeled "templates-version", 
    it has a A/B value and the A is the version of the local schema (the B is the remote schema on the Millistream distribution node).

  * Issue the following SQL statement: "SELECT value FROM stats WHERE name='Templates Version (Loaded)';"

  * Open /etc/mda.tabledef in Linux or C:\Program Files\Millistream\MDA\tabledef.txt on Windows and check the first line, it should read like:
    "<definitions version="XX">" where XX is the version of the local schema.

2. Apply the SQL scripts found in the X_to_Y directories for your particular SQL server. It's important to apply the scripts in order and that you start
   with the directory where X is the version of your current schema. If you cannot find a directory with a X that matches your version then contact 
   Millistream Tech Support at tech@millistream.com and we will fix a correct file for you.

3. Copy the included mda.tabledef to /etc/ on Linux and to C:\Program Files\Millistream\MDA\tabledef.txt on Windows.

4. Open a console or a command prompt and issue a "mda --check" in order to check that MDA is happy with the changes. If MDA is happy then you
   can restart the MDA at a appropriate time to make it use the new schema.


Also note that you need to have an appropriate version of MDA installed since some SQL schema:s requires functionality that is not available in all versions.
This however does not mean that you cannot use an older version of MDA for this schema, it just means that some new tables and/or columns might not be
filled with data unless you also update the MDA.

As of SQL schema v77-1, MDA v0.9.35-2 is required
As of SQL schema v90, MDA v0.9.41 is required for the mifid and priip tables
As of SQL schema v100, MDA v0.9.47 is required for the new keyratios columns
As of SQL schema v106, MDA v0.9.50 is required for the mbo and greeks tables
As of SQL schema v115, MDA v0.9.51 is required for the combolegs table
As of SQL schema v117, MDA v0.9.51 is required for the quotesex table
As of SQL schema v119, MDA v0.9.52 is required for the new diff fields to the peformance table
As of SQL schema v124, MDA v0.9.55 is required for the aggtrades table

