0001_initial.py 1.49 KB
Newer Older
Ben Waters's avatar
Ben Waters committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
# -*- coding: utf-8 -*-
from south.utils import datetime_utils as 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 'Location'
        db.create_table(u'geo_location', (
            (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('name', self.gf('django.db.models.fields.CharField')(max_length=50)),
            ('area', self.gf('django.db.models.fields.IntegerField')()),
            ('minLon', self.gf('django.db.models.fields.FloatField')()),
            ('maxLon', self.gf('django.db.models.fields.FloatField')()),
            ('minLat', self.gf('django.db.models.fields.FloatField')()),
        ))
        db.send_create_signal(u'geo', ['Location'])


    def backwards(self, orm):
        # Deleting model 'Location'
        db.delete_table(u'geo_location')


    models = {
        u'geo.location': {
            'Meta': {'object_name': 'Location'},
            'area': ('django.db.models.fields.IntegerField', [], {}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'maxLon': ('django.db.models.fields.FloatField', [], {}),
            'minLat': ('django.db.models.fields.FloatField', [], {}),
            'minLon': ('django.db.models.fields.FloatField', [], {}),
            'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
        }
    }

    complete_apps = ['geo']