Skip to content

Commit

Permalink
[#1025] Updated migration
Browse files Browse the repository at this point in the history
  • Loading branch information
KasperBrandt committed Feb 5, 2015
1 parent d018039 commit 386a368
Showing 1 changed file with 2 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,26 +22,13 @@ def forwards(self, orm):
self.gf('django.db.models.fields.files.FileField')(default='', max_length=100, blank=True),
keep_default=False)

# Adding field 'Link.language'
db.add_column(u'rsr_link', 'language',
self.gf('akvo.rsr.fields.ValidXMLCharField')(default='', max_length=2, blank=True),
keep_default=False)

# Adding field 'Link.title_language'
db.add_column(u'rsr_link', 'title_language',
self.gf('akvo.rsr.fields.ValidXMLCharField')(default='', max_length=2, blank=True),
keep_default=False)

# Adding field 'Link.format'
db.add_column(u'rsr_link', 'format',
self.gf('akvo.rsr.fields.ValidXMLCharField')(default='', max_length=75, blank=True),
keep_default=False)

# Adding field 'Link.category'
db.add_column(u'rsr_link', 'category',
self.gf('akvo.rsr.fields.ValidXMLCharField')(default='', max_length=3, blank=True),
keep_default=False)

# Deleting field 'Link.credit'
db.delete_column(u'rsr_link', 'credit')

def backwards(self, orm):
# Adding model 'ProjectDocument'
Expand All @@ -66,19 +53,9 @@ def backwards(self, orm):
# Deleting field 'Link.document'
db.delete_column(u'rsr_link', 'document')

# Deleting field 'Link.language'
db.delete_column(u'rsr_link', 'language')

# Deleting field 'Link.title_language'
db.delete_column(u'rsr_link', 'title_language')

# Deleting field 'Link.format'
db.delete_column(u'rsr_link', 'format')

# Deleting field 'Link.category'
db.delete_column(u'rsr_link', 'category')


models = {
u'auth.group': {
'Meta': {'object_name': 'Group'},
Expand Down

0 comments on commit 386a368

Please sign in to comment.