Platform  3.1
PHP API documentation
 All Data Structures Namespaces Files Functions Variables Pages
migr_2.5.1.php
Go to the documentation of this file.
1 <?php
2 /*
3  * @author Anakeen
4  * @license http://creativecommons.org/licenses/by-nc-sa/2.0/fr/ Anakeen - licence CC
5  * @package FDL
6 */
7 /**
8  * Generated Header (not documented yet)
9  *
10  * @author Anakeen 2000
11  * @version $Id: migr_2.5.1.php,v 1.2 2007/02/14 16:13:57 eric Exp $
12  * @license http://creativecommons.org/licenses/by-nc-sa/2.0/fr/ Anakeen - licence CC
13  * @package FDL
14  * @subpackage
15  */
16 /**
17  */
18 // refreah for a classname
19 // use this only if you have changed title attributes
20 include_once ("FDL/Class.Dir.php");
21 include_once ("FDL/Class.DocFam.php");
22 
24 {
25 
26  $query = new QueryDb($dbaccess, "Docfam");
27  $lfam = $query->Query(0, 0, "TABLE");
28  foreach ($lfam as $k => $v) {
29  print sprintf("create index doc_initid%d on doc%d(initid);\n", $v["id"], $v["id"]);
30  # print sprintf("create index doc_fldrels%d on doc%d(fldrels);\n",$v["id"],$v["id"]);
31 
32  }
33 
34  $table1 = $query->Query();
35 }
37 {
38 
39  $query = new QueryDb($dbaccess, "Docfam");
40  $lfam = $query->Query(0, 0, "TABLE");
41  foreach ($lfam as $k => $v) {
42  print sprintf("create index doc_profidid%d on doc%d(profid);\n", $v["id"], $v["id"]);
43  }
44 
45  $table1 = $query->Query();
46 }
48 {
49 
50  $query = new QueryDb($dbaccess, "QueryDir");
51  $query->AddQuery("qtype='S'");
52  $lfam = $query->Query(0, 0, "TABLE");
53  foreach ($lfam as $k => $v) {
54  print sprintf("update fld set qtype=qtype where dirid=%s and childid=%s;\n", $v["dirid"], $v["childid"]);
55  }
56 
57  $table1 = $query->Query();
58 }
59 $dbaccess = GetParam("FREEDOM_DB");
60 
62 //updateFldrel($dbaccess);
63 
64 ?>
← centre documentaire © anakeen - published under CC License - Dynacase