Skip to content

Commit

Permalink
Fix 0010 DB migration
Browse files Browse the repository at this point in the history
  • Loading branch information
tobami committed Aug 24, 2012
1 parent 01317c6 commit 4960eeb
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
from django.db import models

class Migration(SchemaMigration):
no_dry_run = True

def forwards(self, orm):

# Adding field 'Benchmark.default_on_comparison'
db.add_column('codespeed_benchmark', 'default_on_comparison', self.gf('django.db.models.fields.BooleanField')(default=True), keep_default=False)
for bench in orm.Benchmark.objects.all():
Expand All @@ -16,7 +16,6 @@ def forwards(self, orm):


def backwards(self, orm):

# Deleting field 'Benchmark.default_on_comparison'
db.delete_column('codespeed_benchmark', 'default_on_comparison')

Expand Down

0 comments on commit 4960eeb

Please sign in to comment.