Dear All,
I would like to do some migrations that are compatible with older django
version using southdb to the newer version. How can these files be
updated.iḿ attaching one of the file that is needed to be migrated.
Any help will be appreciated
Best
Ank
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/043a69c6-4ea9-48b8-9b42-b088e02ddd37%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
# -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Deleting model 'Component'
db.delete_table('component')
# Adding model 'ConstraintsToSegmentMap'
db.create_table('catmaid_constraintstosegmentmap', (
('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
('project', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['catmaid.Project'])),
('stack', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['catmaid.Stack'])),
('origin_section', self.gf('django.db.models.fields.IntegerField')(db_index=True)),
('target_section', self.gf('django.db.models.fields.IntegerField')(db_index=True)),
('segments', self.gf('catmaid.fields.IntegerArrayField')()),
))
db.send_create_signal('catmaid', ['ConstraintsToSegmentMap'])
# Adding model 'SliceContoursHighres'
db.create_table('catmaid_slicecontourshighres', (
('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['auth.User'])),
('project', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['catmaid.Project'])),
('coordinates', self.gf('catmaid.fields.IntegerArrayField')()),
('stack', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['catmaid.Stack'])),
('node_id', self.gf('django.db.models.fields.CharField')(max_length=255, db_index=True)),
('length', self.gf('django.db.models.fields.FloatField')(null=True)),
))
db.send_create_signal('catmaid', ['SliceContoursHighres'])
# Adding model 'SliceContours'
db.create_table('catmaid_slicecontours', (
('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['auth.User'])),
('project', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['catmaid.Project'])),
('coordinates', self.gf('catmaid.fields.IntegerArrayField')()),
('stack', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['catmaid.Stack'])),
('node_id', self.gf('django.db.models.fields.CharField')(max_length=255, db_index=True)),
('length', self.gf('django.db.models.fields.FloatField')(null=True)),
))
db.send_create_signal('catmaid', ['SliceContours'])
# Adding model 'Slices'
db.create_table('catmaid_slices', (
('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['auth.User'])),
('project', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['catmaid.Project'])),
('creation_time', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now)),
('edition_time', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now)),
('stack', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['catmaid.Stack