def forwards(self, orm): if was_applied(__file__, 'old_app'): return # Adding field 'Something.new_value' db.add_column('old_app_something', 'new_value', self.gf('django.db.models.fields.IntegerField')(default=0), keep_default=False)
def forwards(self, orm): "Write your forwards methods here." if was_applied(__file__, 'old_app'): return for item in orm['old_app.Something'].objects.all(): item.new_value = int(item.value) item.save()
def forwards(self, orm): if was_applied(__file__, 'old_app'): return # Adding field 'Something.new_value' db.add_column( 'old_app_something', 'new_value', self.gf('django.db.models.fields.IntegerField')(default=0), keep_default=False)
def forwards(self, orm): if was_applied(__file__, 'old_app'): return # Adding model 'Something' db.create_table('old_app_something', ( ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('value', self.gf('django.db.models.fields.BooleanField')(default=False)), )) db.send_create_signal('old_app', ['Something'])