|
| 1 | +# -*- coding: utf-8 -*- |
| 2 | +from south.utils import datetime_utils as datetime |
| 3 | +from south.db import db |
| 4 | +from south.v2 import SchemaMigration |
| 5 | +from django.db import models |
| 6 | + |
| 7 | + |
| 8 | +class Migration(SchemaMigration): |
| 9 | + |
| 10 | + def forwards(self, orm): |
| 11 | + |
| 12 | + # Changing field 'Source.name' |
| 13 | + db.alter_column(u'easy_thumbnails_source', 'name', self.gf('django.db.models.fields.CharField')(max_length=1023)) |
| 14 | + |
| 15 | + # Changing field 'Thumbnail.name' |
| 16 | + db.alter_column(u'easy_thumbnails_thumbnail', 'name', self.gf('django.db.models.fields.CharField')(max_length=1023)) |
| 17 | + |
| 18 | + def backwards(self, orm): |
| 19 | + |
| 20 | + # Changing field 'Source.name' |
| 21 | + db.alter_column(u'easy_thumbnails_source', 'name', self.gf('django.db.models.fields.CharField')(max_length=255)) |
| 22 | + |
| 23 | + # Changing field 'Thumbnail.name' |
| 24 | + db.alter_column(u'easy_thumbnails_thumbnail', 'name', self.gf('django.db.models.fields.CharField')(max_length=255)) |
| 25 | + |
| 26 | + models = { |
| 27 | + u'easy_thumbnails.source': { |
| 28 | + 'Meta': {'unique_together': "((u'storage_hash', u'name'),)", 'object_name': 'Source'}, |
| 29 | + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
| 30 | + 'modified': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), |
| 31 | + 'name': ('django.db.models.fields.CharField', [], {'max_length': '1023', 'db_index': 'True'}), |
| 32 | + 'storage_hash': ('django.db.models.fields.CharField', [], {'max_length': '40', 'db_index': 'True'}) |
| 33 | + }, |
| 34 | + u'easy_thumbnails.thumbnail': { |
| 35 | + 'Meta': {'unique_together': "((u'storage_hash', u'name', u'source'),)", 'object_name': 'Thumbnail'}, |
| 36 | + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
| 37 | + 'modified': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), |
| 38 | + 'name': ('django.db.models.fields.CharField', [], {'max_length': '1023', 'db_index': 'True'}), |
| 39 | + 'source': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "u'thumbnails'", 'to': u"orm['easy_thumbnails.Source']"}), |
| 40 | + 'storage_hash': ('django.db.models.fields.CharField', [], {'max_length': '40', 'db_index': 'True'}) |
| 41 | + }, |
| 42 | + u'easy_thumbnails.thumbnaildimensions': { |
| 43 | + 'Meta': {'object_name': 'ThumbnailDimensions'}, |
| 44 | + 'height': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True'}), |
| 45 | + u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
| 46 | + 'thumbnail': ('django.db.models.fields.related.OneToOneField', [], {'related_name': "u'dimensions'", 'unique': 'True', 'to': u"orm['easy_thumbnails.Thumbnail']"}), |
| 47 | + 'width': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True'}) |
| 48 | + } |
| 49 | + } |
| 50 | + |
| 51 | + complete_apps = ['easy_thumbnails'] |
0 commit comments