/docs/MyDocs

To get this branch, use:
bzr branch http://darksoft.org/webbzr/docs/MyDocs

« back to all changes in this revision

Viewing changes to SCM/trac/fixes/0.10/tags/tags-0.6-upgrade.patch

  • Committer: Suren A. Chilingaryan
  • Date: 2017-04-03 02:45:17 UTC
  • Revision ID: csa@suren.me-20170403024517-dwzj0z0k1cmhxm7u
Restructuring, OpenShift, Ansible, Git

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
--- model.py.old        2009-06-27 10:17:40.000000000 +0200
 
2
+++ model.py    2009-06-27 10:17:40.000000000 +0200
 
3
@@ -20,10 +20,10 @@
 
4
         self._upgrade_db(self.env.get_db_cnx())
 
5
 
 
6
     def environment_needs_upgrade(self, db):
 
7
-        cursor = db.cursor()
 
8
         if self._need_migration(db):
 
9
             return True
 
10
         try:
 
11
+            cursor = db.cursor()
 
12
             cursor.execute("select count(*) from tags")
 
13
             cursor.fetchone()
 
14
             return False