Permalink
Browse files

fixed migrations

  • Loading branch information...
1 parent ef8b38e commit 66575a055d3f9628bd691c0cebd91b6101f2b15e @stefanfoulis stefanfoulis committed Mar 4, 2010
View
@@ -12,4 +12,5 @@ build
.DS_Store
.project
.pydevproject
+.settings
*~
@@ -1,2 +1,2 @@
-VERSION = (0, 10, 2, 'a1')
-__version__ = '0.10.2a1'
+VERSION = (0, 10, 2, 'a3')
+__version__ = '0.10.2a3'
@@ -8,19 +8,31 @@ class Migration(SchemaMigration):
def forwards(self, orm):
+ # Changing field 'GalleryTranslation.language_code'
+ db.alter_column('simplegallery_gallery_translation', 'language_code', self.gf('django.db.models.fields.CharField')(db_index=True, max_length=15, blank=True))
+
# Adding M2M table for field groups on 'Gallery'
db.create_table('simplegallery_gallery_groups', (
('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
('gallery', models.ForeignKey(orm['simplegallery.gallery'], null=False)),
('group', models.ForeignKey(orm['auth.group'], null=False))
))
db.create_unique('simplegallery_gallery_groups', ['gallery_id', 'group_id'])
+
+ # Changing field 'ImageTranslation.language_code'
+ db.alter_column('simplegallery_image_translation', 'language_code', self.gf('django.db.models.fields.CharField')(db_index=True, max_length=15, blank=True))
def backwards(self, orm):
+ # Changing field 'GalleryTranslation.language_code'
+ db.alter_column('simplegallery_gallery_translation', 'language_code', self.gf('django.db.models.fields.CharField')(blank=True, max_length=5, db_index=True))
+
# Removing M2M table for field groups on 'Gallery'
db.delete_table('simplegallery_gallery_groups')
+
+ # Changing field 'ImageTranslation.language_code'
+ db.alter_column('simplegallery_image_translation', 'language_code', self.gf('django.db.models.fields.CharField')(blank=True, max_length=5, db_index=True))
models = {
@@ -30,12 +42,6 @@ def backwards(self, orm):
'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'})
},
- 'auth.group_permissions': {
- 'Meta': {'unique_together': "(('group', 'permission'),)", 'object_name': 'Group_permissions'},
- 'group': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'Group_permissions+'", 'to': "orm['auth.Group']"}),
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'permission': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'Group_permissions+'", 'to': "orm['auth.Permission']"})
- },
'auth.permission': {
'Meta': {'unique_together': "(('content_type', 'codename'),)", 'object_name': 'Permission'},
'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
@@ -59,18 +65,6 @@ def backwards(self, orm):
'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['auth.Permission']", 'blank': 'True'}),
'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
},
- 'auth.user_groups': {
- 'Meta': {'unique_together': "(('user', 'group'),)", 'object_name': 'User_groups'},
- 'group': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'User_groups+'", 'to': "orm['auth.Group']"}),
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'User_groups+'", 'to': "orm['auth.User']"})
- },
- 'auth.user_user_permissions': {
- 'Meta': {'unique_together': "(('user', 'permission'),)", 'object_name': 'User_user_permissions'},
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'permission': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'User_user_permissions+'", 'to': "orm['auth.Permission']"}),
- 'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'User_user_permissions+'", 'to': "orm['auth.User']"})
- },
'cms.cmsplugin': {
'Meta': {'object_name': 'CMSPlugin'},
'creation_date': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
@@ -192,12 +186,6 @@ def backwards(self, orm):
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255'})
},
- 'simplegallery.gallery_groups': {
- 'Meta': {'unique_together': "(('gallery', 'group'),)", 'object_name': 'Gallery_groups'},
- 'gallery': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'Gallery_groups+'", 'to': "orm['simplegallery.Gallery']"}),
- 'group': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'Gallery_groups+'", 'to': "orm['auth.Group']"}),
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'})
- },
'simplegallery.gallerypublication': {
'Meta': {'object_name': 'GalleryPublication', 'db_table': "'cmsplugin_gallerypublication'", '_ormbases': ['cms.CMSPlugin']},
'aspect_ratio': ('django.db.models.fields.FloatField', [], {'default': '1'}),
Oops, something went wrong.

0 comments on commit 66575a0

Please sign in to comment.