CMS  Version 3.9
component_upgrade_manager.inc
Go to the documentation of this file.
1 <?php
7 /**************************************************************
8 
9  Copyright (c) 2010 Sonjara, Inc
10 
11  Permission is hereby granted, free of charge, to any person
12  obtaining a copy of this software and associated documentation
13  files (the "Software"), to deal in the Software without
14  restriction, including without limitation the rights to use,
15  copy, modify, merge, publish, distribute, sublicense, and/or sell
16  copies of the Software, and to permit persons to whom the
17  Software is furnished to do so, subject to the following
18  conditions:
19 
20  The above copyright notice and this permission notice shall be
21  included in all copies or substantial portions of the Software.
22 
23  Except as contained in this notice, the name(s) of the above
24  copyright holders shall not be used in advertising or otherwise
25  to promote the sale, use or other dealings in this Software
26  without prior written authorization.
27 
28  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
29  EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
30  OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
31  NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
32  HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
33  WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
34  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
35  OTHER DEALINGS IN THE SOFTWARE.
36 
37 *****************************************************************/
38 
39 /*
40  * Manage component upgrades/updates to Component
41  * component.
42  *
43  * See parent class component/upgrade_manager.inc
44  * for instructions on usage.
45  *
46  * @author Janice Gallant for Sonjara, Inc.
47  *
48  * 6/2/2011
49  *
50  */
51 
52 require_once "cms/components/component/upgrade_manager.inc";
53 
55 {
56  var $updateMap = array(
57  "1.0" => "sql:Initial Installation",
58  "1.1" => "sql:add table component_update_log_attachment_xref",
59  "1.2" => "sql:Increased size of component description field"
60  );
61 
63  {
64  $this->component_name = "component";
65 
66  // sets the sqlFile name according to default
67  parent::UpgradeManager();
68  }
69 
70  function bootstrap()
71  {
72  $this->executeVersionSql("0");
73  }
74 
75 }?>
executeVersionSql($version_number)