Skip to content
Snippets Groups Projects
Commit fb635ce3 authored by Sebastian Listl's avatar Sebastian Listl :speech_balloon:
Browse files

#1064124 added database indexes

parent 95a00da0
No related branches found
No related tags found
No related merge requests found
......@@ -12,6 +12,24 @@
"description": "The table \"DATABASECHANGELOG\" has no primary key [65]",
"groupName": "nb-tasklist-warning"
},
{
"target": "aliasDefinition/Data_alias/Data_alias.aod",
"line": -1,
"description": "There is no index for the column \"APPOINTMENT_ID\" in the table \"VISITPLANENTRY\" [59]",
"groupName": "nb-tasklist-warning"
},
{
"target": "aliasDefinition/Data_alias/Data_alias.aod",
"line": -1,
"description": "There is no index for the column \"DEPLOYMENT_ID\" in the table \"DATABASECHANGELOG\" [59]",
"groupName": "nb-tasklist-warning"
},
{
"target": "aliasDefinition/Data_alias/Data_alias.aod",
"line": -1,
"description": "There is no index for the column \"TESTING_CONTACT_ID\" in the table \"BULKMAIL\" [59]",
"groupName": "nb-tasklist-warning"
},
{
"target": "aliasDefinition/_____SYSTEMALIAS/_____SYSTEMALIAS.aod",
"line": -1,
......
......@@ -5,5 +5,29 @@
<createIndex tableName="COMMUNICATION" indexName="IDX_COMMUNICATION_MEDIUM_ID">
<column name="MEDIUM_ID"/>
</createIndex>
<createIndex tableName="AB_APPOINTMENTLINK" indexName="IDX_APPOINTMENTLINK_AP_ID">
<column name="APPOINTMENT_ID"/>
</createIndex>
<createIndex tableName="EXPORTTEMPLATEPLACEOFUSE" indexName="IDX_EXPORTTEMPLATEUSE_T_ID">
<column name="EXPORTTEMPLATE_ID"/>
</createIndex>
<createIndex tableName="DOCUMENTTEMPLATEPLACEOFUSE" indexName="IDX_DOCUMENTTEMPLATEUSE_DT_ID">
<column name="DOCUMENTTEMPLATE_ID"/>
</createIndex>
<createIndex tableName="EXPORTTEMPLATEFIELD" indexName="IDX_EXPORTTEMPLATEFIELD_ET_ID">
<column name="EXPORTTEMPLATE_ID"/>
</createIndex>
<createIndex tableName="VISITRECOMMENDATION" indexName="IDX_VISITRECOMMEND_CONTACT_ID">
<column name="CONTACT_ID"/>
</createIndex>
<createIndex tableName="VISITPLANEMPLOYEEWEEK" indexName="IDX_VISITPLANWEEK_CONTACT_ID">
<column name="CONTACT_ID"/>
</createIndex>
<createIndex tableName="VISITPLANENTRY" indexName="IDX_VISITPLANENTRY_VPEMW_ID">
<column name="VISITPLANEMPLOYEEWEEK_ID"/>
</createIndex>
<createIndex tableName="LEADIMPORTMAPPINGASSISTANT" indexName="IDX_LEADIMPORTMAPPING_LI_ID">
<column name="LEADIMPORT_ID"/>
</createIndex>
</changeSet>
</databaseChangeLog>
......@@ -7021,7 +7021,7 @@
<scale v="0" />
<notNull v="true" />
<isUnique v="false" />
<index v="false" />
<index v="true" />
<documentation></documentation>
<title>Appointment Id</title>
<description></description>
......@@ -14031,7 +14031,7 @@
<scale v="0" />
<notNull v="false" />
<isUnique v="false" />
<index v="false" />
<index v="true" />
<documentation></documentation>
<title></title>
<description></description>
......@@ -14072,7 +14072,7 @@
<scale v="0" />
<notNull v="false" />
<isUnique v="false" />
<index v="false" />
<index v="true" />
<documentation></documentation>
<title></title>
<description></description>
......@@ -14357,7 +14357,7 @@
<scale v="0" />
<notNull v="false" />
<isUnique v="false" />
<index v="false" />
<index v="true" />
<documentation></documentation>
<title></title>
<description></description>
......@@ -14669,7 +14669,7 @@
<scale v="0" />
<notNull v="false" />
<isUnique v="false" />
<index v="false" />
<index v="true" />
<documentation></documentation>
<title></title>
<description></description>
......@@ -14745,7 +14745,7 @@
<scale v="0" />
<notNull v="false" />
<isUnique v="false" />
<index v="false" />
<index v="true" />
<documentation></documentation>
<title></title>
<description></description>
......@@ -14863,7 +14863,7 @@
<scale v="0" />
<notNull v="false" />
<isUnique v="false" />
<index v="false" />
<index v="true" />
<documentation></documentation>
<title></title>
<description></description>
......@@ -15155,7 +15155,7 @@
<scale v="0" />
<notNull v="false" />
<isUnique v="false" />
<index v="false" />
<index v="true" />
<documentation></documentation>
<title></title>
<description></description>
......
......@@ -9,9 +9,10 @@ var cond = newWhere()
if(vars.get("$param.ComingFrom_param"))
{
cond.and("DOCUMENTTEMPLATE.DOCUMENTTEMPLATEID", newSelect("DOCUMENTTEMPLATEPLACEOFUSE.DOCUMENTTEMPLATE_ID")
.from("DOCUMENTTEMPLATEPLACEOFUSE")
.where("DOCUMENTTEMPLATEPLACEOFUSE.PLACEOFUSE", "$param.ComingFrom_param"),SqlBuilder.IN());
cond.and(null, newSelect("DOCUMENTTEMPLATEPLACEOFUSE.DOCUMENTTEMPLATEPLACEOFUSEID")
.from("DOCUMENTTEMPLATEPLACEOFUSE")
.where("DOCUMENTTEMPLATEPLACEOFUSE.PLACEOFUSE", "$param.ComingFrom_param")
.and("DOCUMENTTEMPLATEPLACEOFUSE.DOCUMENTTEMPLATE_ID = DOCUMENTTEMPLATE.DOCUMENTTEMPLATEID"), SqlBuilder.EXISTS());
}
result.string(cond);
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment