missing migrations
authorMarcin Koziej <marcin@lolownia.org>
Fri, 6 Dec 2013 09:15:30 +0000 (10:15 +0100)
committerMarcin Koziej <marcin@lolownia.org>
Fri, 6 Dec 2013 09:15:30 +0000 (10:15 +0100)
apps/picture/migrations/0003_auto__add_field_picture_extra_info.py [new file with mode: 0644]
apps/picture/migrations/0004_auto__add_field_picture_gazeta_link__add_field_picture_wiki_link.py [new file with mode: 0644]
apps/picture/migrations/0005_auto__del_field_picture_gazeta_link__add_field_picture_culturepl_link.py [new file with mode: 0644]

diff --git a/apps/picture/migrations/0003_auto__add_field_picture_extra_info.py b/apps/picture/migrations/0003_auto__add_field_picture_extra_info.py
new file mode 100644 (file)
index 0000000..1e9b8bb
--- /dev/null
@@ -0,0 +1,39 @@
+# -*- 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):
+        # Adding field 'Picture.extra_info'
+        db.add_column(u'picture_picture', 'extra_info',
+                      self.gf('jsonfield.fields.JSONField')(default={}),
+                      keep_default=False)
+
+
+    def backwards(self, orm):
+        # Deleting field 'Picture.extra_info'
+        db.delete_column(u'picture_picture', 'extra_info')
+
+
+    models = {
+        u'picture.picture': {
+            'Meta': {'ordering': "('sort_key',)", 'object_name': 'Picture'},
+            'areas': ('jsonfield.fields.JSONField', [], {'default': '{}'}),
+            'changed_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'db_index': 'True', 'blank': 'True'}),
+            'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'db_index': 'True', 'blank': 'True'}),
+            'extra_info': ('jsonfield.fields.JSONField', [], {'default': '{}'}),
+            'html_file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
+            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'image_file': ('sorl.thumbnail.fields.ImageField', [], {'max_length': '100'}),
+            'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '120'}),
+            'sort_key': ('django.db.models.fields.CharField', [], {'max_length': '120', 'db_index': 'True'}),
+            'title': ('django.db.models.fields.CharField', [], {'max_length': '120'}),
+            'xml_file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'})
+        }
+    }
+
+    complete_apps = ['picture']
\ No newline at end of file
diff --git a/apps/picture/migrations/0004_auto__add_field_picture_gazeta_link__add_field_picture_wiki_link.py b/apps/picture/migrations/0004_auto__add_field_picture_gazeta_link__add_field_picture_wiki_link.py
new file mode 100644 (file)
index 0000000..1405f21
--- /dev/null
@@ -0,0 +1,49 @@
+# -*- 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):
+        # Adding field 'Picture.gazeta_link'
+        db.add_column(u'picture_picture', 'gazeta_link',
+                      self.gf('django.db.models.fields.CharField')(default='', max_length=240, blank=True),
+                      keep_default=False)
+
+        # Adding field 'Picture.wiki_link'
+        db.add_column(u'picture_picture', 'wiki_link',
+                      self.gf('django.db.models.fields.CharField')(default='', max_length=240, blank=True),
+                      keep_default=False)
+
+
+    def backwards(self, orm):
+        # Deleting field 'Picture.gazeta_link'
+        db.delete_column(u'picture_picture', 'gazeta_link')
+
+        # Deleting field 'Picture.wiki_link'
+        db.delete_column(u'picture_picture', 'wiki_link')
+
+
+    models = {
+        u'picture.picture': {
+            'Meta': {'ordering': "('sort_key',)", 'object_name': 'Picture'},
+            'areas': ('jsonfield.fields.JSONField', [], {'default': '{}'}),
+            'changed_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'db_index': 'True', 'blank': 'True'}),
+            'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'db_index': 'True', 'blank': 'True'}),
+            'extra_info': ('jsonfield.fields.JSONField', [], {'default': '{}'}),
+            'gazeta_link': ('django.db.models.fields.CharField', [], {'max_length': '240', 'blank': 'True'}),
+            'html_file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
+            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'image_file': ('sorl.thumbnail.fields.ImageField', [], {'max_length': '100'}),
+            'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '120'}),
+            'sort_key': ('django.db.models.fields.CharField', [], {'max_length': '120', 'db_index': 'True'}),
+            'title': ('django.db.models.fields.CharField', [], {'max_length': '120'}),
+            'wiki_link': ('django.db.models.fields.CharField', [], {'max_length': '240', 'blank': 'True'}),
+            'xml_file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'})
+        }
+    }
+
+    complete_apps = ['picture']
\ No newline at end of file
diff --git a/apps/picture/migrations/0005_auto__del_field_picture_gazeta_link__add_field_picture_culturepl_link.py b/apps/picture/migrations/0005_auto__del_field_picture_gazeta_link__add_field_picture_culturepl_link.py
new file mode 100644 (file)
index 0000000..48d9ff6
--- /dev/null
@@ -0,0 +1,49 @@
+# -*- 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 field 'Picture.gazeta_link'
+        db.delete_column(u'picture_picture', 'gazeta_link')
+
+        # Adding field 'Picture.culturepl_link'
+        db.add_column(u'picture_picture', 'culturepl_link',
+                      self.gf('django.db.models.fields.CharField')(default='', max_length=240, blank=True),
+                      keep_default=False)
+
+
+    def backwards(self, orm):
+        # Adding field 'Picture.gazeta_link'
+        db.add_column(u'picture_picture', 'gazeta_link',
+                      self.gf('django.db.models.fields.CharField')(default='', max_length=240, blank=True),
+                      keep_default=False)
+
+        # Deleting field 'Picture.culturepl_link'
+        db.delete_column(u'picture_picture', 'culturepl_link')
+
+
+    models = {
+        u'picture.picture': {
+            'Meta': {'ordering': "('sort_key',)", 'object_name': 'Picture'},
+            'areas': ('jsonfield.fields.JSONField', [], {'default': '{}'}),
+            'changed_at': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'db_index': 'True', 'blank': 'True'}),
+            'created_at': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'db_index': 'True', 'blank': 'True'}),
+            'culturepl_link': ('django.db.models.fields.CharField', [], {'max_length': '240', 'blank': 'True'}),
+            'extra_info': ('jsonfield.fields.JSONField', [], {'default': '{}'}),
+            'html_file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
+            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'image_file': ('sorl.thumbnail.fields.ImageField', [], {'max_length': '100'}),
+            'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '120'}),
+            'sort_key': ('django.db.models.fields.CharField', [], {'max_length': '120', 'db_index': 'True'}),
+            'title': ('django.db.models.fields.CharField', [], {'max_length': '120'}),
+            'wiki_link': ('django.db.models.fields.CharField', [], {'max_length': '240', 'blank': 'True'}),
+            'xml_file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'})
+        }
+    }
+
+    complete_apps = ['picture']
\ No newline at end of file