From 15c5869b54e9a770b9abbeab1e990b713cdb1b3b Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Thu, 9 May 2013 20:07:49 +0200 Subject: Update for django 1.4 --- ryuslash/aggregator/migrations/0001_initial.py | 40 ++++++++++++++++++++++++++ ryuslash/aggregator/migrations/__init__.py | 0 2 files changed, 40 insertions(+) create mode 100644 ryuslash/aggregator/migrations/0001_initial.py create mode 100644 ryuslash/aggregator/migrations/__init__.py (limited to 'ryuslash/aggregator/migrations') diff --git a/ryuslash/aggregator/migrations/0001_initial.py b/ryuslash/aggregator/migrations/0001_initial.py new file mode 100644 index 0000000..550a389 --- /dev/null +++ b/ryuslash/aggregator/migrations/0001_initial.py @@ -0,0 +1,40 @@ +# -*- 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 model 'Post' + db.create_table('aggregator_post', ( + ('post_id', self.gf('django.db.models.fields.CharField')(unique=True, max_length=255, primary_key=True)), + ('title', self.gf('django.db.models.fields.CharField')(max_length=500)), + ('category', self.gf('django.db.models.fields.CharField')(max_length=255)), + ('link', self.gf('django.db.models.fields.URLField')(max_length=255)), + ('updated', self.gf('django.db.models.fields.DateTimeField')()), + ('content', self.gf('django.db.models.fields.TextField')()), + ('icon', self.gf('django.db.models.fields.CharField')(max_length=255)), + )) + db.send_create_signal('aggregator', ['Post']) + + def backwards(self, orm): + # Deleting model 'Post' + db.delete_table('aggregator_post') + + models = { + 'aggregator.post': { + 'Meta': {'ordering': "['-updated']", 'object_name': 'Post'}, + 'category': ('django.db.models.fields.CharField', [], {'max_length': '255'}), + 'content': ('django.db.models.fields.TextField', [], {}), + 'icon': ('django.db.models.fields.CharField', [], {'max_length': '255'}), + 'link': ('django.db.models.fields.URLField', [], {'max_length': '255'}), + 'post_id': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '255', 'primary_key': 'True'}), + 'title': ('django.db.models.fields.CharField', [], {'max_length': '500'}), + 'updated': ('django.db.models.fields.DateTimeField', [], {}) + } + } + + complete_apps = ['aggregator'] \ No newline at end of file diff --git a/ryuslash/aggregator/migrations/__init__.py b/ryuslash/aggregator/migrations/__init__.py new file mode 100644 index 0000000..e69de29 -- cgit v1.2.3-54-g00ecf