Skip to content

Commit

Permalink
remove BEGIN/COMMIT statements from create output
Browse files Browse the repository at this point in the history
  • Loading branch information
paltman committed Jan 23, 2011
1 parent 47f19d7 commit 740ecd0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions nashvegas/management/commands/upgradedb.py
Expand Up @@ -122,9 +122,8 @@ def init_nashvegas(self):
def create_migrations(self):
statements = get_sql_for_new_models()
if len(statements) > 0:
print "BEGIN;"
for s in statements:
print s
print s.replace("COMMIT;", "")

@transaction.commit_manually
def execute_migrations(self, show_traceback=False):
Expand Down

0 comments on commit 740ecd0

Please sign in to comment.