Permalink
Browse files

Make plugin install idempotent & compatible with latest db schema

  • Loading branch information...
1 parent b87391f commit 7a90075a547c842da893c226fc1d1d5efe7f246b @rjmackay rjmackay committed May 21, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 libraries/analysis_install.php
@@ -53,8 +53,8 @@ public function run_install()
PRIMARY KEY (id)
);");
$this->db->query("
- INSERT INTO `".Kohana::config('database.default.table_prefix')."category` (id, locale, category_type, category_position, category_title, category_description, category_color, category_visible, category_trusted)
- VALUES (1999, 'en_US', 5, 6, 'Analysis', 'Reports created from analysis of multiple reports', '92c400', 1, 0);
+ INSERT IGNORE INTO `".Kohana::config('database.default.table_prefix')."category` (id, locale, category_position, category_title, category_description, category_color, category_visible, category_trusted)
+ VALUES (1999, 'en_US', 6, 'Analysis', 'Reports created from analysis of multiple reports', '92c400', 1, 0);
");
}

0 comments on commit 7a90075

Please sign in to comment.