tickets: Add initial migration.
authorMatthijs Kooijman <matthijs@stdin.nl>
Tue, 19 Oct 2010 09:43:25 +0000 (11:43 +0200)
committerMatthijs Kooijman <matthijs@stdin.nl>
Tue, 19 Oct 2010 09:43:25 +0000 (11:43 +0200)
tickets/migrations/0001_initial.py [new file with mode: 0644]
tickets/migrations/__init__.py [new file with mode: 0644]

diff --git a/tickets/migrations/0001_initial.py b/tickets/migrations/0001_initial.py
new file mode 100644 (file)
index 0000000..7b9b3f8
--- /dev/null
@@ -0,0 +1,45 @@
+# 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 'Booking'
+        db.create_table('tickets_booking', (
+            ('tickets', self.gf('django.db.models.fields.IntegerField')()),
+            ('name', self.gf('django.db.models.fields.CharField')(max_length=100)),
+            ('created', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True, blank=True)),
+            ('address1', self.gf('django.db.models.fields.CharField')(max_length=50)),
+            ('address2', self.gf('django.db.models.fields.CharField')(max_length=50)),
+            ('show', self.gf('django.db.models.fields.CharField')(max_length=50)),
+            ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
+            ('email', self.gf('django.db.models.fields.EmailField')(max_length=75)),
+        ))
+        db.send_create_signal('tickets', ['Booking'])
+    
+    
+    def backwards(self, orm):
+        
+        # Deleting model 'Booking'
+        db.delete_table('tickets_booking')
+    
+    
+    models = {
+        'tickets.booking': {
+            'Meta': {'object_name': 'Booking'},
+            'address1': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
+            'address2': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
+            'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
+            'email': ('django.db.models.fields.EmailField', [], {'max_length': '75'}),
+            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
+            'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
+            'show': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
+            'tickets': ('django.db.models.fields.IntegerField', [], {})
+        }
+    }
+    
+    complete_apps = ['tickets']
diff --git a/tickets/migrations/__init__.py b/tickets/migrations/__init__.py
new file mode 100644 (file)
index 0000000..e69de29