1449d18528b7 — Peter Sanchez 13 years ago
Added initial South migration files
2 files changed, 54 insertions(+), 0 deletions(-)

A => callback/migrations/0001_initial.py
A => callback/migrations/__init__.py
A => callback/migrations/0001_initial.py +54 -0
@@ 0,0 1,54 @@ 
+# encoding: 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 'CallbackMap'
+        db.create_table('callback_callbackmap', (
+            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
+            ('hash_id', self.gf('django.db.models.fields.CharField')(max_length=40)),
+            ('content_type', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['contenttypes.ContentType'])),
+            ('object_id', self.gf('django.db.models.fields.PositiveIntegerField')()),
+            ('is_active', self.gf('django.db.models.fields.BooleanField')(default=True)),
+            ('is_error', self.gf('django.db.models.fields.BooleanField')(default=False)),
+            ('error_msg', self.gf('django.db.models.fields.TextField')(blank=True)),
+            ('created_on', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now)),
+            ('updated_on', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now)),
+        ))
+        db.send_create_signal('callback', ['CallbackMap'])
+
+
+    def backwards(self, orm):
+        
+        # Deleting model 'CallbackMap'
+        db.delete_table('callback_callbackmap')
+
+
+    models = {
+        'callback.callbackmap': {
+            'Meta': {'object_name': 'CallbackMap'},
+            'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
+            'created_on': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
+            'error_msg': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
+            'hash_id': ('django.db.models.fields.CharField', [], {'max_length': '40'}),
+            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
+            'is_error': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
+            'object_id': ('django.db.models.fields.PositiveIntegerField', [], {}),
+            'updated_on': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'})
+        },
+        'contenttypes.contenttype': {
+            'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
+            'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
+            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
+            'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
+        }
+    }
+
+    complete_apps = ['callback']

          
A => callback/migrations/__init__.py +0 -0