<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
{font-family:Helvetica;
panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:"Arial Unicode MS";
panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 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 Narrow";
panose-1:2 11 6 6 2 2 2 3 2 4;}
@font-face
{font-family:"\@Arial Unicode MS";
panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin-top:0cm;
margin-right:0cm;
margin-bottom:6.0pt;
margin-left:0cm;
line-height:111%;
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:111%;
page-break-after:avoid;
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:111%;
page-break-after:avoid;
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:111%;
page-break-after:avoid;
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:111%;
page-break-after:avoid;
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:111%;
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:111%;
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:111%;
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:111%;
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:111%;
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;}
pre
{mso-style-priority:99;
mso-style-link:"HTML Vorformatiert Zchn";
margin-top:0cm;
margin-right:0cm;
margin-bottom:6.0pt;
margin-left:0cm;
line-height:111%;
font-size:10.0pt;
font-family:"Courier New";}
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;}
p.msonormal0, li.msonormal0, div.msonormal0
{mso-style-name:msonormal;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
span.HTMLVorformatiertZchn
{mso-style-name:"HTML Vorformatiert Zchn";
mso-style-priority:99;
mso-style-link:"HTML Vorformatiert";
font-family:Consolas;}
span.E-MailFormatvorlage24
{mso-style-type:personal;
font-family:"Arial",sans-serif;
color:windowtext;}
span.E-MailFormatvorlage25
{mso-style-type:personal-reply;
font-family:"Arial",sans-serif;
color:#165F9A;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
/* List Definitions */
@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><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#009DEC" vlink="#933973">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#165F9A">Hallo Pavol,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#165F9A">I know it’s very unsupported </span>
<span lang="DE" style="font-family:Wingdings;color:#165F9A">J</span><span style="color:#165F9A">. Thanks for the script – I will generate it by hand. I already faked the entry for m_global_metadata ;-)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#165F9A">Cheers,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#165F9A">Chris.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#165F9A"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height:normal">
<b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> midPoint <midpoint-bounces@lists.evolveum.com>
<b>On Behalf Of </b>Pavol Mederly<br>
<b>Sent:</b> Monday, December 10, 2018 1:05 PM<br>
<b>To:</b> </span><span lang="DE" style="font-size:11.0pt;font-family:"Calibri",sans-serif">midPoint General Discussion <midpoint@lists.evolveum.com><br>
<b>Subject:</b> *EXT* [Newsletter] Re: [midPoint] Database Scripts for 4.0?<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal"><span style="color:black">Hello Chris,<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:black">unfortunately, they are not written yet. We postponed their creation until the M_ARCHETYPE table structure is finished.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:black">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).<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:black">But I have not tested that yet.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:black">Best regards,<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:black">Pavol Mederly<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="color:black"><o:p> </o:p></span></p>
</div>
<div>
<pre style="background:#2B2B2B;font-size:0pt"><b><span style="color:#CC7832">CREATE TABLE </span></b><span style="color:#A9B7C6">m_archetype (<br> </span><span style="color:#9876AA">name_norm </span><b><span style="color:#CC7832">VARCHAR</span></b><span style="color:#A9B7C6">(</span><span style="color:#6897BB">255</span><span style="color:#A9B7C6">)</span><span style="color:#CC7832">,<br> </span><span style="color:#9876AA">name_orig </span><b><span style="color:#CC7832">VARCHAR</span></b><span style="color:#A9B7C6">(</span><span style="color:#6897BB">255</span><span style="color:#A9B7C6">)</span><span style="color:#CC7832">,<br> </span><span style="color:#9876AA">oid </span><b><span style="color:#CC7832">VARCHAR</span></b><span style="color:#A9B7C6">(</span><span style="color:#6897BB">36</span><span style="color:#A9B7C6">) </span><b><span style="color:#CC7832">NOT NULL</span></b><span style="color:#CC7832">,<br> <b>PRIMARY KEY </b></span><span style="color:#A9B7C6">(</span><span style="color:#9876AA">oid</span><span style="color:#A9B7C6">)<br>)<o:p></o:p></span></pre>
</div>
<div>
<pre style="background:#2B2B2B;font-size:0pt"><b><span style="color:#CC7832">CREATE </span></b><span style="color:#A9B7C6">INDEX iArchetypeNameOrig<br> </span><b><span style="color:#CC7832">ON </span></b><span style="color:#A9B7C6">m_archetype (name_orig)</span><span style="color:#CC7832">;<br><br><br></span><span style="color:#A9B7C6"><o:p></o:p></span></pre>
<pre style="background:#2B2B2B;font-size:0pt"><b><span style="color:#CC7832">ALTER TABLE </span></b><span style="color:#A9B7C6">m_archetype<br> </span><b><span style="color:#CC7832">ADD CONSTRAINT </span></b><span style="color:#A9B7C6">uc_archetype_name </span><b><span style="color:#CC7832">UNIQUE </span></b><span style="color:#A9B7C6">(</span><span style="color:#9876AA">name_norm</span><span style="color:#A9B7C6">)</span><span style="color:#CC7832">;<br><br><br></span><span style="color:#A9B7C6"><o:p></o:p></span></pre>
<pre style="background:#2B2B2B;font-size:0pt"><b><span style="color:#CC7832">ALTER TABLE </span></b><span style="color:#A9B7C6">m_archetype<br> </span><b><span style="color:#CC7832">ADD CONSTRAINT </span></b><span style="color:#A9B7C6">fk_archetype </span><b><span style="color:#CC7832">FOREIGN KEY </span></b><span style="color:#A9B7C6">(</span><span style="color:#9876AA">oid</span><span style="color:#A9B7C6">) </span><b><span style="color:#CC7832">REFERENCES </span></b><span style="color:#A9B7C6">m_object (</span><span style="color:#9876AA">oid</span><span style="color:#A9B7C6">)</span><span style="color:#CC7832">;<br><br></span><span style="color:#A9B7C6"><o:p></o:p></span></pre>
</div>
<div class="MsoNormal" align="center" style="text-align:center"><span style="color:black">
<hr size="3" width="100%" align="center" id="zwchr">
</span></div>
<div>
<p class="MsoNormal"><b><span style="font-family:"Helvetica",sans-serif;color:black">From:
</span></b><span style="font-family:"Helvetica",sans-serif;color:black">"Chris Woods" <<a href="mailto:Chris.Woods@rohde-schwarz.com">Chris.Woods@rohde-schwarz.com</a>><br>
<b>To: </b>"midPoint General Discussion" <<a href="mailto:midpoint@lists.evolveum.com">midpoint@lists.evolveum.com</a>><br>
<b>Sent: </b>Monday, December 10, 2018 12:18:29 PM<br>
<b>Subject: </b>[midPoint] Database Scripts for 4.0?<o:p></o:p></span></p>
<div>
<p class="MsoNormal"><span style="font-family:"Helvetica",sans-serif;color:black"><o:p> </o:p></span></p>
</div>
<p class="MsoNormal"><span style="color:black">Hi,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black">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…<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black">Many thanks in advance,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:black">Chris.<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height:normal">
<span style="font-size:12.0pt;font-family:"Helvetica",sans-serif;color:black"><br>
_______________________________________________<br>
midPoint mailing list<br>
<a href="mailto:midPoint@lists.evolveum.com">midPoint@lists.evolveum.com</a><br>
<a href="http://lists.evolveum.com/mailman/listinfo/midpoint">http://lists.evolveum.com/mailman/listinfo/midpoint</a><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height:normal">
<span style="font-size:12.0pt;font-family:"Times New Roman",serif;color:black"><o:p> </o:p></span></p>
</div>
</div>
</div>
</body>
</html>