aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorElrond <elrond+mediagoblin.org@samba-tng.org>2012-12-09 20:14:15 +0100
committerChristopher Allan Webber <cwebber@dustycloud.org>2012-12-10 16:17:24 -0600
commita64abbb10abf025d10dbc1a49979c7c8f4d74895 (patch)
tree95dd7d5320423de210cd72480c9df371baaa5911
parentea91c183ff8c6c877d3403f354c92b18a3788860 (diff)
downloadmediagoblin-a64abbb10abf025d10dbc1a49979c7c8f4d74895.tar.lz
mediagoblin-a64abbb10abf025d10dbc1a49979c7c8f4d74895.tar.xz
mediagoblin-a64abbb10abf025d10dbc1a49979c7c8f4d74895.zip
Fix typo, disable debugging.
-rw-r--r--mediagoblin/db/sql/migrations.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/mediagoblin/db/sql/migrations.py b/mediagoblin/db/sql/migrations.py
index 66557912..b4c91eee 100644
--- a/mediagoblin/db/sql/migrations.py
+++ b/mediagoblin/db/sql/migrations.py
@@ -142,7 +142,7 @@ def create_processing_metadata_table(db):
# new tables. While creating the tables from scratch had
# the constraint enabled.
#
-# So we have three situations that should end up at the same
+# So we have four situations that should end up at the same
# db layout:
#
# 1. Fresh install.
@@ -158,14 +158,13 @@ def create_processing_metadata_table(db):
# And this migration is just skipped silently.
# 4. old install, always on latest git.
# This one has the tables, but lacks the constraint.
-# So this mitration adds the constraint.
+# So this migration adds the constraint.
@RegisterMigration(7, MIGRATIONS)
def fix_CollectionItem_v0_constraint(db_conn):
"""Add the forgotten Constraint on CollectionItem"""
global collectionitem_unique_constraint_done
if collectionitem_unique_constraint_done:
- print "Okay, already done, short circuit"
# Reset it. Maybe the whole thing gets run again
# For a different db?
collectionitem_unique_constraint_done = False