Sfoglia il codice sorgente

#944 Automatically create an index on the 'origin' field.

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@3235 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 11 anni fa
parent
commit
03f6188358
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. 3 0
      core/cmdbchange.class.inc.php

+ 3 - 0
core/cmdbchange.class.inc.php

@@ -44,6 +44,9 @@ class CMDBChange extends DBObject
 			"db_table" => "priv_change",
 			"db_key_field" => "id",
 			"db_finalclass_field" => "",
+			'indexes' => array(
+				array('origin'),
+			)
 		);
 		MetaModel::Init_Params($aParams);
 		//MetaModel::Init_InheritAttributes();