From: Matthijs Kooijman Date: Tue, 19 Oct 2010 09:43:25 +0000 (+0200) Subject: tickets: Add initial migration. X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=d9d138c4840dc10d606f3ca02176badbd8ae2161;p=matthijs%2Fprojects%2Fdorestad-bookings.git tickets: Add initial migration. --- diff --git a/tickets/migrations/0001_initial.py b/tickets/migrations/0001_initial.py new file mode 100644 index 0000000..7b9b3f8 --- /dev/null +++ b/tickets/migrations/0001_initial.py @@ -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 index 0000000..e69de29