1. Peter Sanchez
  2. django-callback

Commits

Peter Sanchez  committed 1449d18

Added initial South migration files

  • Participants
  • Parent commits c0a7fbe
  • Branches default

Comments (0)

Files changed (2)

File callback/migrations/0001_initial.py

View file
+# 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']

File callback/migrations/__init__.py

Empty file added.