Skip to content
Browse files

Added south app and initial migration for webpagemaker.api.

  • Loading branch information...
1 parent 4a53d7a commit c5b8e85fe775df8628be5aac04b2fab4183af456 @toolness committed
View
32 webpagemaker/api/migrations/0001_initial.py
@@ -0,0 +1,32 @@
+# -*- 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 'Page'
+ db.create_table('api_page', (
+ ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
+ ('html', self.gf('django.db.models.fields.TextField')(max_length=10000)),
+ ('original_url', self.gf('django.db.models.fields.URLField')(default='', max_length=200, blank=True)),
+ ))
+ db.send_create_signal('api', ['Page'])
+
+ def backwards(self, orm):
+ # Deleting model 'Page'
+ db.delete_table('api_page')
+
+ models = {
+ 'api.page': {
+ 'Meta': {'object_name': 'Page'},
+ 'html': ('django.db.models.fields.TextField', [], {'max_length': '10000'}),
+ 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+ 'original_url': ('django.db.models.fields.URLField', [], {'default': "''", 'max_length': '200', 'blank': 'True'})
+ }
+ }
+
+ complete_apps = ['api']
View
0 webpagemaker/api/migrations/__init__.py
No changes.
View
1 webpagemaker/settings/base.py
@@ -10,6 +10,7 @@
INSTALLED_APPS = list(INSTALLED_APPS) + [
'django.contrib.messages',
'django.contrib.admin',
+ 'south',
# Application base, containing global templates.
'webpagemaker.base',

0 comments on commit c5b8e85

Please sign in to comment.
Something went wrong with that request. Please try again.