Olemis Lang avatar Olemis Lang committed 39a5ccf

BH Multiproduct #115 : Database upgrade for product settings table

Comments (0)

Files changed (1)

t115/t115_r1427886_product_config.diff

 # HG changeset patch
-# Parent 0abbfaaeb2f726c35397fc56b998a5c6e401f70f
+# Parent 91a78951c15156dd7ed8b348bd9431b23f850c6c
 BH Multiproduct #115 : Product-specific settings
 
-diff -r 0abbfaaeb2f7 bloodhound_multiproduct/multiproduct/model.py
---- a/bloodhound_multiproduct/multiproduct/model.py	Thu Jan 03 01:11:58 2013 -0500
-+++ b/bloodhound_multiproduct/multiproduct/model.py	Thu Jan 03 01:12:16 2013 -0500
+diff -r 91a78951c151 bloodhound_multiproduct/multiproduct/api.py
+--- a/bloodhound_multiproduct/multiproduct/api.py	Thu Jan 03 01:16:05 2013 -0500
++++ b/bloodhound_multiproduct/multiproduct/api.py	Thu Jan 03 01:32:13 2013 -0500
+@@ -31,9 +31,9 @@
+ from trac.util.translation import _, N_
+ from trac.web.chrome import ITemplateProvider
+ 
+-from multiproduct.model import Product, ProductResourceMap
++from multiproduct.model import Product, ProductResourceMap, ProductSetting
+ 
+-DB_VERSION = 2
++DB_VERSION = 3
+ DB_SYSTEM_KEY = 'bloodhound_multi_product_version'
+ PLUGIN_NAME = 'Bloodhound multi product'
+ 
+@@ -44,7 +44,7 @@
+             IPermissionRequestor, ITicketFieldProvider, IResourceManager)
+     
+     SCHEMA = [modelcls._get_schema() \
+-                for modelcls in (Product, ProductResourceMap)]
++                for modelcls in (Product, ProductResourceMap, ProductSetting)]
+     del modelcls
+     
+     def get_version(self):
+diff -r 91a78951c151 bloodhound_multiproduct/multiproduct/model.py
+--- a/bloodhound_multiproduct/multiproduct/model.py	Thu Jan 03 01:16:05 2013 -0500
++++ b/bloodhound_multiproduct/multiproduct/model.py	Thu Jan 03 01:32:13 2013 -0500
 @@ -27,6 +27,10 @@
  
  from bhdashboard.model import ModelBase
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.