CMS  Version 3.9
taxonomy_upgrade_manager.inc
Go to the documentation of this file.
1 <?php
7 /**************************************************************
8 
9 Copyright (c) 2014 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 
47 Fakoli::using("taxonomy", "component");
48 
50 {
51  var $updateMap = array(
52  "1.0" => "sql:Initial schema creation",
53  "1.1" => "sql:Upgrade taxonomy table to support being an enumerable, publishable feature",
54  "1.2" => "sql:Updated taxonomy_term table to link it to taxonomy (doh!)",
55  "1.3" => "sql:Added taxonomy_id foreign key to taxonomy_term_association table",
56  "1.4" => "sql:Change column name from `primary_key` to `id` in taxonomy_term_association table to avoid naming conflict",
57  "1.5" => "sql:Change description to definition in taxonomy_term",
58  "1.6" => "sql:Added taxonomy_term_association_summary view to efficiently query term_id summaries for items",
59  "1.7" => "sql:Added enable_facet_filter flag to taxonomy table",
60  "1.8" => "sql:Added binding_target and binding tables",
61  "1.9" => "sql:Added indexes for binding table",
62  "2.0" => "sql:Added binding_summary view",
63  "2.1" => "sql:Additional index on taxonomy_term_association to improve performance",
64  "2.2" => "sql:Added sort_order to taxonomy_term table"
65  );
66 
68  {
69  $this->component_name = "taxonomy";
70 
71  // sets the sqlFile name according to default
72  parent::UpgradeManager();
73  }
74 }
75 ?>
static using()
Import the datamodels, views and manifest for the specified component(s).
Definition: core.inc:116