<html><body><div style="font-family: times new roman, new york, times, serif; font-size: 12pt; color: #000000"><div>Hello Chris,<br></div><div><br></div><div>unfortunately, they are not written yet. We postponed their creation until the M_ARCHETYPE table structure is finished.<br></div><div><br></div><div>The workaround is either to set hibernateHbm2ddl parameter to "update" (not much tested for databases other than H2, though), or to use scripts for 3.9 and manually create M_ARCHETYPE table in a way similar e.g. to M_FUNCTION_LIBRARY (see below).<br></div><div><br></div><div>But I have not tested that yet.<br></div><div><br></div><div>Best regards,<br></div><div>Pavol Mederly<br></div><div><br></div><div><pre style="background-color: #2b2b2b; color: #a9b7c6; font-family: 'Courier New'; font-size: 9,0pt;" data-mce-style="background-color: #2b2b2b; color: #a9b7c6; font-family: 'Courier New'; font-size: 9,0pt;"><span style="color: #cc7832; font-weight: bold;" data-mce-style="color: #cc7832; font-weight: bold;">CREATE TABLE </span>m_archetype (<br> <span style="color: #9876aa;" data-mce-style="color: #9876aa;">name_norm </span><span style="color: #cc7832; font-weight: bold;" data-mce-style="color: #cc7832; font-weight: bold;">VARCHAR</span>(<span style="color: #6897bb;" data-mce-style="color: #6897bb;">255</span>)<span style="color: #cc7832;" data-mce-style="color: #cc7832;">,<br></span><span style="color: #cc7832;" data-mce-style="color: #cc7832;"> </span><span style="color: #9876aa;" data-mce-style="color: #9876aa;">name_orig </span><span style="color: #cc7832; font-weight: bold;" data-mce-style="color: #cc7832; font-weight: bold;">VARCHAR</span>(<span style="color: #6897bb;" data-mce-style="color: #6897bb;">255</span>)<span style="color: #cc7832;" data-mce-style="color: #cc7832;">,<br></span><span style="color: #cc7832;" data-mce-style="color: #cc7832;"> </span><span style="color: #9876aa;" data-mce-style="color: #9876aa;">oid </span><span style="color: #cc7832; font-weight: bold;" data-mce-style="color: #cc7832; font-weight: bold;">VARCHAR</span>(<span style="color: #6897bb;" data-mce-style="color: #6897bb;">36</span>) <span style="color: #cc7832; font-weight: bold;" data-mce-style="color: #cc7832; font-weight: bold;">NOT NULL</span><span style="color: #cc7832;" data-mce-style="color: #cc7832;">,<br></span><span style="color: #cc7832;" data-mce-style="color: #cc7832;"> </span><span style="color: #cc7832; font-weight: bold;" data-mce-style="color: #cc7832; font-weight: bold;">PRIMARY KEY </span>(<span style="color: #9876aa;" data-mce-style="color: #9876aa;">oid</span>)<br>)</pre></div><div><pre style="background-color: #2b2b2b; color: #a9b7c6; font-family: 'Courier New'; font-size: 9,0pt;" data-mce-style="background-color: #2b2b2b; color: #a9b7c6; font-family: 'Courier New'; font-size: 9,0pt;"><span style="color: #cc7832; font-weight: bold;" data-mce-style="color: #cc7832; font-weight: bold;">CREATE </span>INDEX iArchetypeNameOrig<br> <span style="color: #cc7832; font-weight: bold;" data-mce-style="color: #cc7832; font-weight: bold;">ON </span>m_archetype (name_orig)<span style="color: #cc7832;" data-mce-style="color: #cc7832;">;<br><br></span></pre><pre style="background-color: #2b2b2b; color: #a9b7c6; font-family: 'Courier New'; font-size: 9,0pt;" data-mce-style="background-color: #2b2b2b; color: #a9b7c6; font-family: 'Courier New'; font-size: 9,0pt;"><span style="color: #cc7832; font-weight: bold;" data-mce-style="color: #cc7832; font-weight: bold;">ALTER TABLE </span>m_archetype<br> <span style="color: #cc7832; font-weight: bold;" data-mce-style="color: #cc7832; font-weight: bold;">ADD CONSTRAINT </span>uc_archetype_name <span style="color: #cc7832; font-weight: bold;" data-mce-style="color: #cc7832; font-weight: bold;">UNIQUE </span>(<span style="color: #9876aa;" data-mce-style="color: #9876aa;">name_norm</span>)<span style="color: #cc7832;" data-mce-style="color: #cc7832;">;<br><br></span></pre><pre style="background-color: #2b2b2b; color: #a9b7c6; font-family: 'Courier New'; font-size: 9,0pt;" data-mce-style="background-color: #2b2b2b; color: #a9b7c6; font-family: 'Courier New'; font-size: 9,0pt;"><span style="color: #cc7832; font-weight: bold;" data-mce-style="color: #cc7832; font-weight: bold;">ALTER TABLE </span>m_archetype<br> <span style="color: #cc7832; font-weight: bold;" data-mce-style="color: #cc7832; font-weight: bold;">ADD CONSTRAINT </span>fk_archetype <span style="color: #cc7832; font-weight: bold;" data-mce-style="color: #cc7832; font-weight: bold;">FOREIGN KEY </span>(<span style="color: #9876aa;" data-mce-style="color: #9876aa;">oid</span>) <span style="color: #cc7832; font-weight: bold;" data-mce-style="color: #cc7832; font-weight: bold;">REFERENCES </span>m_object (<span style="color: #9876aa;" data-mce-style="color: #9876aa;">oid</span>)<span style="color: #cc7832;" data-mce-style="color: #cc7832;">;<br></span></pre></div><hr id="zwchr"><div style="color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;" data-mce-style="color: #000; font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;"><b>From: </b>"Chris Woods" <Chris.Woods@rohde-schwarz.com><br><b>To: </b>"midPoint General Discussion" <midpoint@lists.evolveum.com><br><b>Sent: </b>Monday, December 10, 2018 12:18:29 PM<br><b>Subject: </b>[midPoint] Database Scripts for 4.0?<br><div><br></div><style><!--
@font-face
{font-family:"Arial Unicode MS";
panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
{font-family:"Arial Black";
panose-1:2 11 10 4 2 1 2 2 2 4;}
@font-face
{font-family:"\@Arial Unicode MS";
panose-1:2 11 6 4 2 2 2 2 2 4;}
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin-top:0cm;
margin-right:0cm;
margin-bottom:6.0pt;
margin-left:0cm;
line-height:112%;
font-size:10.0pt;
font-family:"Arial",sans-serif;}
h1
{mso-style-priority:12;
mso-style-link:"Überschrift 1 Zchn";
margin-top:18.0pt;
margin-right:0cm;
margin-bottom:6.0pt;
margin-left:21.25pt;
mso-add-space:auto;
text-indent:-21.25pt;
line-height:112%;
page-break-after:avoid;
mso-list:l2 level1 lfo2;
font-size:20.0pt;
font-family:"Arial Narrow",sans-serif;
color:#009DEC;
font-weight:normal;}
h1.CxSpFirst
{mso-style-priority:12;
mso-style-link:"Überschrift 1 Zchn";
mso-style-type:export-only;
margin-top:18.0pt;
margin-right:0cm;
margin-bottom:0cm;
margin-left:21.25pt;
margin-bottom:.0001pt;
mso-add-space:auto;
text-indent:-21.25pt;
line-height:112%;
page-break-after:avoid;
mso-list:l2 level1 lfo2;
font-size:20.0pt;
font-family:"Arial Narrow",sans-serif;
color:#009DEC;
font-weight:normal;}
h1.CxSpMiddle
{mso-style-priority:12;
mso-style-link:"Überschrift 1 Zchn";
mso-style-type:export-only;
margin-top:0cm;
margin-right:0cm;
margin-bottom:0cm;
margin-left:21.25pt;
margin-bottom:.0001pt;
mso-add-space:auto;
text-indent:-21.25pt;
line-height:112%;
page-break-after:avoid;
mso-list:l2 level1 lfo2;
font-size:20.0pt;
font-family:"Arial Narrow",sans-serif;
color:#009DEC;
font-weight:normal;}
h1.CxSpLast
{mso-style-priority:12;
mso-style-link:"Überschrift 1 Zchn";
mso-style-type:export-only;
margin-top:0cm;
margin-right:0cm;
margin-bottom:6.0pt;
margin-left:21.25pt;
mso-add-space:auto;
text-indent:-21.25pt;
line-height:112%;
page-break-after:avoid;
mso-list:l2 level1 lfo2;
font-size:20.0pt;
font-family:"Arial Narrow",sans-serif;
color:#009DEC;
font-weight:normal;}
p.MsoListBullet, li.MsoListBullet, div.MsoListBullet
{mso-style-priority:17;
margin-top:0cm;
margin-right:0cm;
margin-bottom:6.0pt;
margin-left:21.25pt;
text-indent:-21.25pt;
line-height:112%;
mso-list:l1 level1 lfo4;
font-size:10.0pt;
font-family:"Arial",sans-serif;}
p.MsoTitle, li.MsoTitle, div.MsoTitle
{mso-style-priority:10;
mso-style-link:"Titel Zchn";
margin-top:18.0pt;
margin-right:102.05pt;
margin-bottom:6.0pt;
margin-left:0cm;
mso-add-space:auto;
line-height:112%;
font-size:26.0pt;
font-family:"Arial Narrow",sans-serif;
color:#009DEC;}
p.MsoTitleCxSpFirst, li.MsoTitleCxSpFirst, div.MsoTitleCxSpFirst
{mso-style-priority:10;
mso-style-link:"Titel Zchn";
mso-style-type:export-only;
margin-top:18.0pt;
margin-right:102.05pt;
margin-bottom:0cm;
margin-left:0cm;
margin-bottom:.0001pt;
mso-add-space:auto;
line-height:112%;
font-size:26.0pt;
font-family:"Arial Narrow",sans-serif;
color:#009DEC;}
p.MsoTitleCxSpMiddle, li.MsoTitleCxSpMiddle, div.MsoTitleCxSpMiddle
{mso-style-priority:10;
mso-style-link:"Titel Zchn";
mso-style-type:export-only;
margin-top:0cm;
margin-right:102.05pt;
margin-bottom:0cm;
margin-left:0cm;
margin-bottom:.0001pt;
mso-add-space:auto;
line-height:112%;
font-size:26.0pt;
font-family:"Arial Narrow",sans-serif;
color:#009DEC;}
p.MsoTitleCxSpLast, li.MsoTitleCxSpLast, div.MsoTitleCxSpLast
{mso-style-priority:10;
mso-style-link:"Titel Zchn";
mso-style-type:export-only;
margin-top:0cm;
margin-right:102.05pt;
margin-bottom:6.0pt;
margin-left:0cm;
mso-add-space:auto;
line-height:112%;
font-size:26.0pt;
font-family:"Arial Narrow",sans-serif;
color:#009DEC;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#009DEC;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#933973;
text-decoration:underline;}
span.berschrift1Zchn
{mso-style-name:"Überschrift 1 Zchn";
mso-style-priority:12;
mso-style-link:"Überschrift 1";
font-family:"Arial Narrow",sans-serif;
color:#009DEC;}
span.TitelZchn
{mso-style-name:"Titel Zchn";
mso-style-priority:10;
mso-style-link:Titel;
font-family:"Arial Narrow",sans-serif;
color:#009DEC;}
span.E-MailFormatvorlage21
{mso-style-type:personal-compose;
font-family:"Arial",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;
font-family:"Arial",sans-serif;}
.MsoPapDefault
{mso-style-type:export-only;
margin-bottom:6.0pt;
line-height:112%;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
@list l0
{mso-list-id:-119;
mso-list-type:simple;
mso-list-template-ids:-460561208;}
@list l0:level1
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:18.0pt;
mso-level-number-position:left;
margin-left:18.0pt;
text-indent:-18.0pt;
font-family:Symbol;}
@list l1
{mso-list-id:610864188;
mso-list-template-ids:-1039730736;}
@list l1:level1
{mso-level-number-format:bullet;
mso-level-style-link:Aufzählungszeichen;
mso-level-text:ı;
mso-level-tab-stop:21.25pt;
mso-level-number-position:left;
margin-left:21.25pt;
text-indent:-21.25pt;
mso-ansi-font-size:9.0pt;
mso-bidi-font-size:9.0pt;
mso-ascii-font-family:"Arial Black";
mso-hansi-font-family:"Arial Black";
mso-bidi-font-family:"Arial Black";}
@list l1:level2
{mso-level-number-format:bullet;
mso-level-text:▪;
mso-level-tab-stop:42.55pt;
mso-level-number-position:left;
margin-left:42.5pt;
text-indent:-21.25pt;
mso-ansi-font-size:9.0pt;
mso-bidi-font-size:9.0pt;
font-family:"Arial",sans-serif;}
@list l1:level3
{mso-level-number-format:bullet;
mso-level-text:▪;
mso-level-tab-stop:63.8pt;
mso-level-number-position:left;
margin-left:63.75pt;
text-indent:-21.25pt;
mso-ansi-font-size:9.0pt;
mso-bidi-font-size:9.0pt;
font-family:"Arial",sans-serif;}
@list l1:level4
{mso-level-number-format:bullet;
mso-level-text:▪;
mso-level-tab-stop:3.0cm;
mso-level-number-position:left;
margin-left:85.0pt;
text-indent:-21.25pt;
mso-ansi-font-size:9.0pt;
mso-bidi-font-size:9.0pt;
font-family:"Arial",sans-serif;}
@list l1:level5
{mso-level-number-format:bullet;
mso-level-text:▪;
mso-level-tab-stop:106.3pt;
mso-level-number-position:left;
margin-left:106.25pt;
text-indent:-21.25pt;
mso-ansi-font-size:9.0pt;
font-family:"Arial",sans-serif;}
@list l1:level6
{mso-level-number-format:bullet;
mso-level-text:▪;
mso-level-tab-stop:127.6pt;
mso-level-number-position:left;
margin-left:127.5pt;
text-indent:-21.25pt;
mso-ansi-font-size:9.0pt;
mso-bidi-font-size:9.0pt;
font-family:"Arial",sans-serif;}
@list l1:level7
{mso-level-number-format:bullet;
mso-level-text:▪;
mso-level-tab-stop:148.85pt;
mso-level-number-position:left;
margin-left:148.75pt;
text-indent:-21.25pt;
mso-ansi-font-size:9.0pt;
font-family:"Arial",sans-serif;}
@list l1:level8
{mso-level-number-format:bullet;
mso-level-text:▪;
mso-level-tab-stop:6.0cm;
mso-level-number-position:left;
margin-left:170.0pt;
text-indent:-21.25pt;
mso-ansi-font-size:9.0pt;
mso-bidi-font-size:9.0pt;
font-family:"Arial",sans-serif;}
@list l1:level9
{mso-level-number-format:bullet;
mso-level-text:▪;
mso-level-tab-stop:191.35pt;
mso-level-number-position:left;
margin-left:191.25pt;
text-indent:-21.25pt;
mso-ansi-font-size:9.0pt;
mso-bidi-font-size:9.0pt;
mso-ascii-font-family:Arial;
mso-hansi-font-family:Arial;
mso-bidi-font-family:Arial;}
@list l2
{mso-list-id:628360796;
mso-list-template-ids:-1252723272;}
@list l2:level1
{mso-level-style-link:"Überschrift 1";
mso-level-text:%1;
mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:21.25pt;
text-indent:-21.25pt;}
@list l2:level2
{mso-level-text:"%1\.%2";
mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:29.75pt;
text-indent:-29.75pt;}
@list l2:level3
{mso-level-text:"%1\.%2\.%3";
mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:38.25pt;
text-indent:-38.25pt;}
@list l2:level4
{mso-level-text:"%1\.%2\.%3\.%4";
mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:46.8pt;
text-indent:-46.8pt;}
@list l2:level5
{mso-level-text:"%1\.%2\.%3\.%4\.%5";
mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:55.3pt;
text-indent:-55.3pt;}
@list l2:level6
{mso-level-text:"%1\.%2\.%3\.%4\.%5\.%6";
mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:63.8pt;
text-indent:-63.8pt;}
@list l2:level7
{mso-level-text:"%1\.%2\.%3\.%4\.%5\.%6\.%7";
mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:72.3pt;
text-indent:-72.3pt;}
@list l2:level8
{mso-level-text:"%1\.%2\.%3\.%4\.%5\.%6\.%7\.%8";
mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:80.8pt;
text-indent:-80.8pt;}
@list l2:level9
{mso-level-text:"%1\.%2\.%3\.%4\.%5\.%6\.%7\.%8\.%9";
mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:89.3pt;
text-indent:-89.3pt;}
ol
{margin-bottom:0cm;}
ul
{margin-bottom:0cm;}
--></style><div class="WordSection1"><p class="MsoNormal">Hi,</p><p class="MsoNormal">does anyone know where I can find the latest database scripts for the 4.0 development? I can’t seem to find them on github…</p><p class="MsoNormal">Many thanks in advance,</p><p class="MsoNormal">Chris.</p></div><br>_______________________________________________<br>midPoint mailing list<br>midPoint@lists.evolveum.com<br>http://lists.evolveum.com/mailman/listinfo/midpoint<br></div><div><br></div></div></body></html>