diff options
author | Tom Willemse | 2013-05-09 20:07:49 +0200 |
---|---|---|
committer | Tom Willemse | 2013-05-09 20:07:49 +0200 |
commit | 15c5869b54e9a770b9abbeab1e990b713cdb1b3b (patch) | |
tree | 4aa805a44e8da93f4b0698520f16096d216d8ec3 /ryuslash/aggregator/migrations | |
parent | 5f7df695ac6dd9ccc5444a8fc20fa8d97196953e (diff) | |
download | ryuslash.org-15c5869b54e9a770b9abbeab1e990b713cdb1b3b.tar.gz ryuslash.org-15c5869b54e9a770b9abbeab1e990b713cdb1b3b.zip |
Update for django 1.4
Diffstat (limited to 'ryuslash/aggregator/migrations')
-rw-r--r-- | ryuslash/aggregator/migrations/0001_initial.py | 40 | ||||
-rw-r--r-- | ryuslash/aggregator/migrations/__init__.py | 0 |
2 files changed, 40 insertions, 0 deletions
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 --- /dev/null +++ b/ryuslash/aggregator/migrations/__init__.py |