Permalink
Browse files

deleted migration

  • Loading branch information...
1 parent 5030377 commit 2d9a2d4ddb7aa125b9fefd78fb98f792d0889737 Davy-jones-Giant-squid committed Sep 27, 2013
View
54 scrape_crime/migrations/0002_auto__add_unique_crime_primary_type_case_number.py
@@ -1,54 +0,0 @@
-# -*- coding: 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 unique constraint on 'Crime', fields ['primary_type', 'case_number']
- db.create_unique(u'scrape_crime_crime', ['primary_type', 'case_number'])
-
-
- def backwards(self, orm):
- # Removing unique constraint on 'Crime', fields ['primary_type', 'case_number']
- db.delete_unique(u'scrape_crime_crime', ['primary_type', 'case_number'])
-
-
- models = {
- u'scrape_crime.coordinates': {
- 'Meta': {'object_name': 'Coordinates'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'latitude': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
- 'longitude': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'})
- },
- u'scrape_crime.crime': {
- 'Meta': {'ordering': "['description']", 'unique_together': "(('case_number', 'primary_type'),)", 'object_name': 'Crime'},
- 'arrest': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'beat': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': "''"}),
- 'case_number': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': "''"}),
- 'crime_spot': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['scrape_crime.Crime_spot']", 'null': 'True', 'blank': 'True'}),
- 'date': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': "''"}),
- 'description': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': "''"}),
- 'district': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': "''"}),
- 'domestic': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'fbi_code': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'iucr': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': "''"}),
- 'primary_type': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': "''"}),
- 'updated_on': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': "''"}),
- 'ward': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': "''"})
- },
- u'scrape_crime.crime_spot': {
- 'Meta': {'object_name': 'Crime_spot'},
- 'block': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': "''"}),
- 'community_area': ('django.db.models.fields.IntegerField', [], {'default': 'False'}),
- 'community_area_name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': "''"}),
- 'coordinates': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['scrape_crime.Coordinates']", 'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'})
- }
- }
-
- complete_apps = ['scrape_crime']
View
47 scrape_crime/migrations/0002_auto__del_crime.py
@@ -1,47 +0,0 @@
-# -*- coding: 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):
- # Deleting model 'Crime'
- db.delete_table('scrape_crime_crime')
-
- def backwards(self, orm):
- # Adding model 'Crime'
- db.create_table('scrape_crime_crime', (
- ('description', self.gf('django.db.models.fields.CharField')(max_length=30, null=True, blank='')),
- ('district', self.gf('django.db.models.fields.CharField')(max_length=5, null=True, blank='')),
- ('beat', self.gf('django.db.models.fields.CharField')(max_length=8, null=True, blank='')),
- ('domestic', self.gf('django.db.models.fields.BooleanField')(default=False)),
- ('iucr', self.gf('django.db.models.fields.CharField')(max_length=5, null=True, blank='')),
- ('arrest', self.gf('django.db.models.fields.BooleanField')(default=False)),
- ('location_description', self.gf('django.db.models.fields.CharField')(max_length=30, null=True, blank='')),
- ('location', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['scrape_crime.Location'], null=True, blank=True)),
- ('case_number', self.gf('django.db.models.fields.CharField')(max_length=8, null=True, blank='')),
- ('date', self.gf('django.db.models.fields.CharField')(max_length=255, null=True, blank='')),
- ('updated_on', self.gf('django.db.models.fields.CharField')(max_length=8, null=True, blank='')),
- ('ward', self.gf('django.db.models.fields.CharField')(max_length=8, null=True, blank='')),
- ('fbi_code', self.gf('django.db.models.fields.CharField')(max_length=3, null=True, blank=True)),
- ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
- ('primary_type', self.gf('django.db.models.fields.CharField')(max_length=255, blank='')),
- ))
- db.send_create_signal('scrape_crime', ['Crime'])
-
- models = {
- 'scrape_crime.location': {
- 'Meta': {'object_name': 'Location'},
- 'block': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': "''"}),
- 'community_area': ('django.db.models.fields.IntegerField', [], {'default': 'False'}),
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'latitude': ('django.db.models.fields.DecimalField', [], {'null': 'True', 'max_digits': '20', 'decimal_places': '14', 'blank': 'True'}),
- 'longitude': ('django.db.models.fields.DecimalField', [], {'null': 'True', 'max_digits': '20', 'decimal_places': '14', 'blank': 'True'}),
- 'needs_recoding': ('django.db.models.fields.BooleanField', [], {'default': 'False'})
- }
- }
-
- complete_apps = ['scrape_crime']
View
65 scrape_crime/migrations/0003_auto__add_crime.py
@@ -1,65 +0,0 @@
-# -*- coding: 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 'Crime'
- db.create_table('scrape_crime_crime', (
- ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
- ('case_number', self.gf('django.db.models.fields.CharField')(max_length=8, null=True, blank='')),
- ('description', self.gf('django.db.models.fields.CharField')(max_length=30, null=True, blank='')),
- ('domestic', self.gf('django.db.models.fields.BooleanField')(default=False)),
- ('date', self.gf('django.db.models.fields.CharField')(max_length=255, null=True, blank='')),
- ('arrest', self.gf('django.db.models.fields.BooleanField')(default=False)),
- ('district', self.gf('django.db.models.fields.CharField')(max_length=5, null=True, blank='')),
- ('location', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['scrape_crime.Location'], null=True, blank=True)),
- ('location_description', self.gf('django.db.models.fields.CharField')(max_length=30, null=True, blank='')),
- ('primary_type', self.gf('django.db.models.fields.CharField')(max_length=255, blank='')),
- ('beat', self.gf('django.db.models.fields.CharField')(max_length=8, null=True, blank='')),
- ('ward', self.gf('django.db.models.fields.CharField')(max_length=8, null=True, blank='')),
- ('iucr', self.gf('django.db.models.fields.CharField')(max_length=5, null=True, blank='')),
- ('updated_on', self.gf('django.db.models.fields.CharField')(max_length=8, null=True, blank='')),
- ('fbi_code', self.gf('django.db.models.fields.CharField')(max_length=3, null=True, blank=True)),
- ))
- db.send_create_signal('scrape_crime', ['Crime'])
-
- def backwards(self, orm):
- # Deleting model 'Crime'
- db.delete_table('scrape_crime_crime')
-
- models = {
- 'scrape_crime.crime': {
- 'Meta': {'ordering': "['description']", 'object_name': 'Crime'},
- 'arrest': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'beat': ('django.db.models.fields.CharField', [], {'max_length': '8', 'null': 'True', 'blank': "''"}),
- 'case_number': ('django.db.models.fields.CharField', [], {'max_length': '8', 'null': 'True', 'blank': "''"}),
- 'date': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': "''"}),
- 'description': ('django.db.models.fields.CharField', [], {'max_length': '30', 'null': 'True', 'blank': "''"}),
- 'district': ('django.db.models.fields.CharField', [], {'max_length': '5', 'null': 'True', 'blank': "''"}),
- 'domestic': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'fbi_code': ('django.db.models.fields.CharField', [], {'max_length': '3', 'null': 'True', 'blank': 'True'}),
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'iucr': ('django.db.models.fields.CharField', [], {'max_length': '5', 'null': 'True', 'blank': "''"}),
- 'location': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['scrape_crime.Location']", 'null': 'True', 'blank': 'True'}),
- 'location_description': ('django.db.models.fields.CharField', [], {'max_length': '30', 'null': 'True', 'blank': "''"}),
- 'primary_type': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': "''"}),
- 'updated_on': ('django.db.models.fields.CharField', [], {'max_length': '8', 'null': 'True', 'blank': "''"}),
- 'ward': ('django.db.models.fields.CharField', [], {'max_length': '8', 'null': 'True', 'blank': "''"})
- },
- 'scrape_crime.location': {
- 'Meta': {'object_name': 'Location'},
- 'block': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': "''"}),
- 'community_area': ('django.db.models.fields.IntegerField', [], {'default': 'False'}),
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'latitude': ('django.db.models.fields.DecimalField', [], {'null': 'True', 'max_digits': '20', 'decimal_places': '14', 'blank': 'True'}),
- 'longitude': ('django.db.models.fields.DecimalField', [], {'null': 'True', 'max_digits': '20', 'decimal_places': '14', 'blank': 'True'}),
- 'needs_recoding': ('django.db.models.fields.BooleanField', [], {'default': 'False'})
- }
- }
-
- complete_apps = ['scrape_crime']
View
54 scrape_crime/migrations/0003_auto__del_unique_crime_primary_type_case_number.py
@@ -1,54 +0,0 @@
-# -*- coding: 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):
- # Removing unique constraint on 'Crime', fields ['primary_type', 'case_number']
- db.delete_unique(u'scrape_crime_crime', ['primary_type', 'case_number'])
-
-
- def backwards(self, orm):
- # Adding unique constraint on 'Crime', fields ['primary_type', 'case_number']
- db.create_unique(u'scrape_crime_crime', ['primary_type', 'case_number'])
-
-
- models = {
- u'scrape_crime.coordinates': {
- 'Meta': {'object_name': 'Coordinates'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'latitude': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
- 'longitude': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'})
- },
- u'scrape_crime.crime': {
- 'Meta': {'ordering': "['description']", 'object_name': 'Crime'},
- 'arrest': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'beat': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': "''"}),
- 'case_number': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': "''"}),
- 'crime_spot': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['scrape_crime.Crime_spot']", 'null': 'True', 'blank': 'True'}),
- 'date': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': "''"}),
- 'description': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': "''"}),
- 'district': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': "''"}),
- 'domestic': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'fbi_code': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'iucr': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': "''"}),
- 'primary_type': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': "''"}),
- 'updated_on': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': "''"}),
- 'ward': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': "''"})
- },
- u'scrape_crime.crime_spot': {
- 'Meta': {'object_name': 'Crime_spot'},
- 'block': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': "''"}),
- 'community_area': ('django.db.models.fields.IntegerField', [], {'default': 'False'}),
- 'community_area_name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': "''"}),
- 'coordinates': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['scrape_crime.Coordinates']", 'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'})
- }
- }
-
- complete_apps = ['scrape_crime']
View
48 scrape_crime/migrations/0004_auto__chg_field_crime_updated_on.py
@@ -1,48 +0,0 @@
-# -*- coding: 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):
-
- # Changing field 'Crime.updated_on'
- db.alter_column('scrape_crime_crime', 'updated_on', self.gf('django.db.models.fields.CharField')(max_length=255, null=True))
- def backwards(self, orm):
-
- # Changing field 'Crime.updated_on'
- db.alter_column('scrape_crime_crime', 'updated_on', self.gf('django.db.models.fields.CharField')(max_length=8, null=True))
- models = {
- 'scrape_crime.crime': {
- 'Meta': {'ordering': "['description']", 'object_name': 'Crime'},
- 'arrest': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'beat': ('django.db.models.fields.CharField', [], {'max_length': '8', 'null': 'True', 'blank': "''"}),
- 'case_number': ('django.db.models.fields.CharField', [], {'max_length': '8', 'null': 'True', 'blank': "''"}),
- 'date': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': "''"}),
- 'description': ('django.db.models.fields.CharField', [], {'max_length': '30', 'null': 'True', 'blank': "''"}),
- 'district': ('django.db.models.fields.CharField', [], {'max_length': '5', 'null': 'True', 'blank': "''"}),
- 'domestic': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'fbi_code': ('django.db.models.fields.CharField', [], {'max_length': '3', 'null': 'True', 'blank': 'True'}),
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'iucr': ('django.db.models.fields.CharField', [], {'max_length': '5', 'null': 'True', 'blank': "''"}),
- 'location': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['scrape_crime.Location']", 'null': 'True', 'blank': 'True'}),
- 'location_description': ('django.db.models.fields.CharField', [], {'max_length': '30', 'null': 'True', 'blank': "''"}),
- 'primary_type': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': "''"}),
- 'updated_on': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': "''"}),
- 'ward': ('django.db.models.fields.CharField', [], {'max_length': '8', 'null': 'True', 'blank': "''"})
- },
- 'scrape_crime.location': {
- 'Meta': {'object_name': 'Location'},
- 'block': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': "''"}),
- 'community_area': ('django.db.models.fields.IntegerField', [], {'default': 'False'}),
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'latitude': ('django.db.models.fields.DecimalField', [], {'null': 'True', 'max_digits': '20', 'decimal_places': '14', 'blank': 'True'}),
- 'longitude': ('django.db.models.fields.DecimalField', [], {'null': 'True', 'max_digits': '20', 'decimal_places': '14', 'blank': 'True'}),
- 'needs_recoding': ('django.db.models.fields.BooleanField', [], {'default': 'False'})
- }
- }
-
- complete_apps = ['scrape_crime']
View
80 ..._crime/migrations/0004_auto__del_crime_spot__add_crimespot__chg_field_crime_crime_spot.py
@@ -1,80 +0,0 @@
-# -*- coding: 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):
- # Deleting model 'Crime_spot'
- db.delete_table(u'scrape_crime_crime_spot')
-
- # Adding model 'CrimeSpot'
- db.create_table(u'scrape_crime_crimespot', (
- (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
- ('coordinates', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['scrape_crime.Coordinates'], null=True, blank=True)),
- ('community_area', self.gf('django.db.models.fields.IntegerField')(default=False)),
- ('community_area_name', self.gf('django.db.models.fields.CharField')(max_length=255, null=True, blank='')),
- ('block', self.gf('django.db.models.fields.CharField')(max_length=255, null=True, blank='')),
- ))
- db.send_create_signal(u'scrape_crime', ['CrimeSpot'])
-
-
- # Changing field 'Crime.crime_spot'
- db.alter_column(u'scrape_crime_crime', 'crime_spot_id', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['scrape_crime.CrimeSpot'], null=True))
-
- def backwards(self, orm):
- # Adding model 'Crime_spot'
- db.create_table(u'scrape_crime_crime_spot', (
- ('coordinates', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['scrape_crime.Coordinates'], null=True, blank=True)),
- ('community_area_name', self.gf('django.db.models.fields.CharField')(max_length=255, null=True, blank='')),
- ('community_area', self.gf('django.db.models.fields.IntegerField')(default=False)),
- (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
- ('block', self.gf('django.db.models.fields.CharField')(max_length=255, null=True, blank='')),
- ))
- db.send_create_signal(u'scrape_crime', ['Crime_spot'])
-
- # Deleting model 'CrimeSpot'
- db.delete_table(u'scrape_crime_crimespot')
-
-
- # Changing field 'Crime.crime_spot'
- db.alter_column(u'scrape_crime_crime', 'crime_spot_id', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['scrape_crime.Crime_spot'], null=True))
-
- models = {
- u'scrape_crime.coordinates': {
- 'Meta': {'object_name': 'Coordinates'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'latitude': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
- 'longitude': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'})
- },
- u'scrape_crime.crime': {
- 'Meta': {'ordering': "['description']", 'object_name': 'Crime'},
- 'arrest': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'beat': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': "''"}),
- 'case_number': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': "''"}),
- 'crime_spot': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['scrape_crime.CrimeSpot']", 'null': 'True', 'blank': 'True'}),
- 'date': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': "''"}),
- 'description': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': "''"}),
- 'district': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': "''"}),
- 'domestic': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'fbi_code': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'iucr': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': "''"}),
- 'primary_type': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': "''"}),
- 'updated_on': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': "''"}),
- 'ward': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': "''"})
- },
- u'scrape_crime.crimespot': {
- 'Meta': {'object_name': 'CrimeSpot'},
- 'block': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': "''"}),
- 'community_area': ('django.db.models.fields.IntegerField', [], {'default': 'False'}),
- 'community_area_name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': "''"}),
- 'coordinates': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['scrape_crime.Coordinates']", 'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'})
- }
- }
-
- complete_apps = ['scrape_crime']
View
54 scrape_crime/migrations/0005_auto__add_unique_crime_case_number.py
@@ -1,54 +0,0 @@
-# -*- coding: 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 unique constraint on 'Crime', fields ['case_number']
- db.create_unique(u'scrape_crime_crime', ['case_number'])
-
-
- def backwards(self, orm):
- # Removing unique constraint on 'Crime', fields ['case_number']
- db.delete_unique(u'scrape_crime_crime', ['case_number'])
-
-
- models = {
- u'scrape_crime.coordinates': {
- 'Meta': {'object_name': 'Coordinates'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'latitude': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
- 'longitude': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'})
- },
- u'scrape_crime.crime': {
- 'Meta': {'ordering': "['description']", 'object_name': 'Crime'},
- 'arrest': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'beat': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': "''"}),
- 'case_number': ('django.db.models.fields.CharField', [], {'max_length': '255', 'unique': 'True', 'null': 'True', 'blank': "''"}),
- 'crime_spot': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['scrape_crime.CrimeSpot']", 'null': 'True', 'blank': 'True'}),
- 'date': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': "''"}),
- 'description': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': "''"}),
- 'district': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': "''"}),
- 'domestic': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'fbi_code': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'iucr': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': "''"}),
- 'primary_type': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': "''"}),
- 'updated_on': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': "''"}),
- 'ward': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': "''"})
- },
- u'scrape_crime.crimespot': {
- 'Meta': {'object_name': 'CrimeSpot'},
- 'block': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': "''"}),
- 'community_area': ('django.db.models.fields.IntegerField', [], {'default': 'False'}),
- 'community_area_name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': "''"}),
- 'coordinates': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['scrape_crime.Coordinates']", 'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'})
- }
- }
-
- complete_apps = ['scrape_crime']
View
48 scrape_crime/migrations/0005_auto__chg_field_crime_description.py
@@ -1,48 +0,0 @@
-# -*- coding: 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):
-
- # Changing field 'Crime.description'
- db.alter_column('scrape_crime_crime', 'description', self.gf('django.db.models.fields.CharField')(max_length=255, null=True))
- def backwards(self, orm):
-
- # Changing field 'Crime.description'
- db.alter_column('scrape_crime_crime', 'description', self.gf('django.db.models.fields.CharField')(max_length=30, null=True))
- models = {
- 'scrape_crime.crime': {
- 'Meta': {'ordering': "['description']", 'object_name': 'Crime'},
- 'arrest': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'beat': ('django.db.models.fields.CharField', [], {'max_length': '8', 'null': 'True', 'blank': "''"}),
- 'case_number': ('django.db.models.fields.CharField', [], {'max_length': '8', 'null': 'True', 'blank': "''"}),
- 'date': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': "''"}),
- 'description': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': "''"}),
- 'district': ('django.db.models.fields.CharField', [], {'max_length': '5', 'null': 'True', 'blank': "''"}),
- 'domestic': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'fbi_code': ('django.db.models.fields.CharField', [], {'max_length': '3', 'null': 'True', 'blank': 'True'}),
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'iucr': ('django.db.models.fields.CharField', [], {'max_length': '5', 'null': 'True', 'blank': "''"}),
- 'location': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['scrape_crime.Location']", 'null': 'True', 'blank': 'True'}),
- 'location_description': ('django.db.models.fields.CharField', [], {'max_length': '30', 'null': 'True', 'blank': "''"}),
- 'primary_type': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': "''"}),
- 'updated_on': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': "''"}),
- 'ward': ('django.db.models.fields.CharField', [], {'max_length': '8', 'null': 'True', 'blank': "''"})
- },
- 'scrape_crime.location': {
- 'Meta': {'object_name': 'Location'},
- 'block': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': "''"}),
- 'community_area': ('django.db.models.fields.IntegerField', [], {'default': 'False'}),
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'latitude': ('django.db.models.fields.DecimalField', [], {'null': 'True', 'max_digits': '20', 'decimal_places': '14', 'blank': 'True'}),
- 'longitude': ('django.db.models.fields.DecimalField', [], {'null': 'True', 'max_digits': '20', 'decimal_places': '14', 'blank': 'True'}),
- 'needs_recoding': ('django.db.models.fields.BooleanField', [], {'default': 'False'})
- }
- }
-
- complete_apps = ['scrape_crime']
View
76 scrape_crime/migrations/0006_auto__add_neighborhood.py
@@ -1,76 +0,0 @@
-# -*- coding: 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 'Neighborhood'
- db.create_table(u'scrape_crime_neighborhood', (
- (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
- ('name', self.gf('django.db.models.fields.CharField')(max_length=255, null=True, blank='')),
- ))
- db.send_create_signal(u'scrape_crime', ['Neighborhood'])
-
- # Adding M2M table for field coordinates on 'Neighborhood'
- m2m_table_name = db.shorten_name(u'scrape_crime_neighborhood_coordinates')
- db.create_table(m2m_table_name, (
- ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)),
- ('neighborhood', models.ForeignKey(orm[u'scrape_crime.neighborhood'], null=False)),
- ('coordinates', models.ForeignKey(orm[u'scrape_crime.coordinates'], null=False))
- ))
- db.create_unique(m2m_table_name, ['neighborhood_id', 'coordinates_id'])
-
-
- def backwards(self, orm):
- # Deleting model 'Neighborhood'
- db.delete_table(u'scrape_crime_neighborhood')
-
- # Removing M2M table for field coordinates on 'Neighborhood'
- db.delete_table(db.shorten_name(u'scrape_crime_neighborhood_coordinates'))
-
-
- models = {
- u'scrape_crime.coordinates': {
- 'Meta': {'object_name': 'Coordinates'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'latitude': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
- 'longitude': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'})
- },
- u'scrape_crime.crime': {
- 'Meta': {'ordering': "['description']", 'object_name': 'Crime'},
- 'arrest': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'beat': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': "''"}),
- 'case_number': ('django.db.models.fields.CharField', [], {'max_length': '255', 'unique': 'True', 'null': 'True', 'blank': "''"}),
- 'crime_spot': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['scrape_crime.CrimeSpot']", 'null': 'True', 'blank': 'True'}),
- 'date': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': "''"}),
- 'description': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': "''"}),
- 'district': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': "''"}),
- 'domestic': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'fbi_code': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'iucr': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': "''"}),
- 'primary_type': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': "''"}),
- 'updated_on': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': "''"}),
- 'ward': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': "''"})
- },
- u'scrape_crime.crimespot': {
- 'Meta': {'object_name': 'CrimeSpot'},
- 'block': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': "''"}),
- 'community_area': ('django.db.models.fields.IntegerField', [], {'default': 'False'}),
- 'community_area_name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': "''"}),
- 'coordinates': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['scrape_crime.Coordinates']", 'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'})
- },
- u'scrape_crime.neighborhood': {
- 'Meta': {'object_name': 'Neighborhood'},
- 'coordinates': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['scrape_crime.Coordinates']", 'symmetrical': 'False'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': "''"})
- }
- }
-
- complete_apps = ['scrape_crime']
View
84 ...migrations/0006_auto__chg_field_crime_district__chg_field_crime_beat__chg_field_crime_.py
@@ -1,84 +0,0 @@
-# -*- coding: 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):
-
- # Changing field 'Crime.district'
- db.alter_column('scrape_crime_crime', 'district', self.gf('django.db.models.fields.CharField')(max_length=255, null=True))
-
- # Changing field 'Crime.beat'
- db.alter_column('scrape_crime_crime', 'beat', self.gf('django.db.models.fields.CharField')(max_length=255, null=True))
-
- # Changing field 'Crime.iucr'
- db.alter_column('scrape_crime_crime', 'iucr', self.gf('django.db.models.fields.CharField')(max_length=255, null=True))
-
- # Changing field 'Crime.location_description'
- db.alter_column('scrape_crime_crime', 'location_description', self.gf('django.db.models.fields.CharField')(max_length=255, null=True))
-
- # Changing field 'Crime.case_number'
- db.alter_column('scrape_crime_crime', 'case_number', self.gf('django.db.models.fields.CharField')(max_length=255, null=True))
-
- # Changing field 'Crime.ward'
- db.alter_column('scrape_crime_crime', 'ward', self.gf('django.db.models.fields.CharField')(max_length=255, null=True))
-
- # Changing field 'Crime.fbi_code'
- db.alter_column('scrape_crime_crime', 'fbi_code', self.gf('django.db.models.fields.CharField')(max_length=255, null=True))
- def backwards(self, orm):
-
- # Changing field 'Crime.district'
- db.alter_column('scrape_crime_crime', 'district', self.gf('django.db.models.fields.CharField')(max_length=5, null=True))
-
- # Changing field 'Crime.beat'
- db.alter_column('scrape_crime_crime', 'beat', self.gf('django.db.models.fields.CharField')(max_length=8, null=True))
-
- # Changing field 'Crime.iucr'
- db.alter_column('scrape_crime_crime', 'iucr', self.gf('django.db.models.fields.CharField')(max_length=5, null=True))
-
- # Changing field 'Crime.location_description'
- db.alter_column('scrape_crime_crime', 'location_description', self.gf('django.db.models.fields.CharField')(max_length=30, null=True))
-
- # Changing field 'Crime.case_number'
- db.alter_column('scrape_crime_crime', 'case_number', self.gf('django.db.models.fields.CharField')(max_length=8, null=True))
-
- # Changing field 'Crime.ward'
- db.alter_column('scrape_crime_crime', 'ward', self.gf('django.db.models.fields.CharField')(max_length=8, null=True))
-
- # Changing field 'Crime.fbi_code'
- db.alter_column('scrape_crime_crime', 'fbi_code', self.gf('django.db.models.fields.CharField')(max_length=3, null=True))
- models = {
- 'scrape_crime.crime': {
- 'Meta': {'ordering': "['description']", 'object_name': 'Crime'},
- 'arrest': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'beat': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': "''"}),
- 'case_number': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': "''"}),
- 'date': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': "''"}),
- 'description': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': "''"}),
- 'district': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': "''"}),
- 'domestic': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'fbi_code': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'iucr': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': "''"}),
- 'location': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['scrape_crime.Location']", 'null': 'True', 'blank': 'True'}),
- 'location_description': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': "''"}),
- 'primary_type': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': "''"}),
- 'updated_on': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': "''"}),
- 'ward': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': "''"})
- },
- 'scrape_crime.location': {
- 'Meta': {'object_name': 'Location'},
- 'block': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': "''"}),
- 'community_area': ('django.db.models.fields.IntegerField', [], {'default': 'False'}),
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'latitude': ('django.db.models.fields.DecimalField', [], {'null': 'True', 'max_digits': '20', 'decimal_places': '14', 'blank': 'True'}),
- 'longitude': ('django.db.models.fields.DecimalField', [], {'null': 'True', 'max_digits': '20', 'decimal_places': '14', 'blank': 'True'}),
- 'needs_recoding': ('django.db.models.fields.BooleanField', [], {'default': 'False'})
- }
- }
-
- complete_apps = ['scrape_crime']
View
60 scrape_crime/migrations/0007_auto__add_unique_neighborhood_name.py
@@ -1,60 +0,0 @@
-# -*- coding: 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 unique constraint on 'Neighborhood', fields ['name']
- db.create_unique(u'scrape_crime_neighborhood', ['name'])
-
-
- def backwards(self, orm):
- # Removing unique constraint on 'Neighborhood', fields ['name']
- db.delete_unique(u'scrape_crime_neighborhood', ['name'])
-
-
- models = {
- u'scrape_crime.coordinates': {
- 'Meta': {'object_name': 'Coordinates'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'latitude': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
- 'longitude': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'})
- },
- u'scrape_crime.crime': {
- 'Meta': {'ordering': "['description']", 'object_name': 'Crime'},
- 'arrest': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'beat': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': "''"}),
- 'case_number': ('django.db.models.fields.CharField', [], {'max_length': '255', 'unique': 'True', 'null': 'True', 'blank': "''"}),
- 'crime_spot': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['scrape_crime.CrimeSpot']", 'null': 'True', 'blank': 'True'}),
- 'date': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': "''"}),
- 'description': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': "''"}),
- 'district': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': "''"}),
- 'domestic': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'fbi_code': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'iucr': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': "''"}),
- 'primary_type': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': "''"}),
- 'updated_on': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': "''"}),
- 'ward': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': "''"})
- },
- u'scrape_crime.crimespot': {
- 'Meta': {'object_name': 'CrimeSpot'},
- 'block': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': "''"}),
- 'community_area': ('django.db.models.fields.IntegerField', [], {'default': 'False'}),
- 'community_area_name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': "''"}),
- 'coordinates': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['scrape_crime.Coordinates']", 'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'})
- },
- u'scrape_crime.neighborhood': {
- 'Meta': {'object_name': 'Neighborhood'},
- 'coordinates': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['scrape_crime.Coordinates']", 'symmetrical': 'False'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'max_length': '255', 'unique': 'True', 'null': 'True'})
- }
- }
-
- complete_apps = ['scrape_crime']
View
54 ..._crime/migrations/0007_auto__chg_field_location_longitude__chg_field_location_latitude.py
@@ -1,54 +0,0 @@
-# -*- coding: 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):
-
- # Changing field 'Location.longitude'
- db.alter_column('scrape_crime_location', 'longitude', self.gf('django.db.models.fields.FloatField')(null=True))
-
- # Changing field 'Location.latitude'
- db.alter_column('scrape_crime_location', 'latitude', self.gf('django.db.models.fields.FloatField')(null=True))
- def backwards(self, orm):
-
- # Changing field 'Location.longitude'
- db.alter_column('scrape_crime_location', 'longitude', self.gf('django.db.models.fields.DecimalField')(null=True, max_digits=20, decimal_places=14))
-
- # Changing field 'Location.latitude'
- db.alter_column('scrape_crime_location', 'latitude', self.gf('django.db.models.fields.DecimalField')(null=True, max_digits=20, decimal_places=14))
- models = {
- 'scrape_crime.crime': {
- 'Meta': {'ordering': "['description']", 'object_name': 'Crime'},
- 'arrest': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'beat': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': "''"}),
- 'case_number': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': "''"}),
- 'date': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': "''"}),
- 'description': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': "''"}),
- 'district': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': "''"}),
- 'domestic': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'fbi_code': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'iucr': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': "''"}),
- 'location': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['scrape_crime.Location']", 'null': 'True', 'blank': 'True'}),
- 'location_description': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': "''"}),
- 'primary_type': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': "''"}),
- 'updated_on': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': "''"}),
- 'ward': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': "''"})
- },
- 'scrape_crime.location': {
- 'Meta': {'object_name': 'Location'},
- 'block': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': "''"}),
- 'community_area': ('django.db.models.fields.IntegerField', [], {'default': 'False'}),
- 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'latitude': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
- 'longitude': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
- 'needs_recoding': ('django.db.models.fields.BooleanField', [], {'default': 'False'})
- }
- }
-
- complete_apps = ['scrape_crime']
View
108 ...migrations/0008_auto__del_crimespot__del_field_crime_crime_spot__add_field_crime_neigh.py
@@ -1,108 +0,0 @@
-# -*- coding: 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):
- # Deleting model 'CrimeSpot'
- db.delete_table(u'scrape_crime_crimespot')
-
- # Deleting field 'Crime.crime_spot'
- db.delete_column(u'scrape_crime_crime', 'crime_spot_id')
-
- # Adding field 'Crime.neighborhood'
- db.add_column(u'scrape_crime_crime', 'neighborhood',
- self.gf('django.db.models.fields.related.ForeignKey')(to=orm['scrape_crime.Neighborhood'], null=True, blank=True),
- keep_default=False)
-
- # Adding field 'Crime.crime_coordinates'
- db.add_column(u'scrape_crime_crime', 'crime_coordinates',
- self.gf('django.db.models.fields.related.ForeignKey')(to=orm['scrape_crime.Coordinates'], null=True, blank=True),
- keep_default=False)
-
- # Adding field 'Crime.block'
- db.add_column(u'scrape_crime_crime', 'block',
- self.gf('django.db.models.fields.CharField')(max_length=255, null=True, blank=''),
- keep_default=False)
-
- # Adding field 'Neighborhood.area_number'
- db.add_column(u'scrape_crime_neighborhood', 'area_number',
- self.gf('django.db.models.fields.IntegerField')(default=False),
- keep_default=False)
-
-
- # Changing field 'Neighborhood.name'
- db.alter_column(u'scrape_crime_neighborhood', 'name', self.gf('django.db.models.fields.CharField')(unique=True, max_length=255))
-
- def backwards(self, orm):
- # Adding model 'CrimeSpot'
- db.create_table(u'scrape_crime_crimespot', (
- ('coordinates', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['scrape_crime.Coordinates'], null=True, blank=True)),
- ('community_area_name', self.gf('django.db.models.fields.CharField')(max_length=255, null=True, blank='')),
- ('community_area', self.gf('django.db.models.fields.IntegerField')(default=False)),
- (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
- ('block', self.gf('django.db.models.fields.CharField')(max_length=255, null=True, blank='')),
- ))
- db.send_create_signal(u'scrape_crime', ['CrimeSpot'])
-
- # Adding field 'Crime.crime_spot'
- db.add_column(u'scrape_crime_crime', 'crime_spot',
- self.gf('django.db.models.fields.related.ForeignKey')(to=orm['scrape_crime.CrimeSpot'], null=True, blank=True),
- keep_default=False)
-
- # Deleting field 'Crime.neighborhood'
- db.delete_column(u'scrape_crime_crime', 'neighborhood_id')
-
- # Deleting field 'Crime.crime_coordinates'
- db.delete_column(u'scrape_crime_crime', 'crime_coordinates_id')
-
- # Deleting field 'Crime.block'
- db.delete_column(u'scrape_crime_crime', 'block')
-
- # Deleting field 'Neighborhood.area_number'
- db.delete_column(u'scrape_crime_neighborhood', 'area_number')
-
-
- # Changing field 'Neighborhood.name'
- db.alter_column(u'scrape_crime_neighborhood', 'name', self.gf('django.db.models.fields.CharField')(unique=True, max_length=255, null=True))
-
- models = {
- u'scrape_crime.coordinates': {
- 'Meta': {'object_name': 'Coordinates'},
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'latitude': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'}),
- 'longitude': ('django.db.models.fields.FloatField', [], {'null': 'True', 'blank': 'True'})
- },
- u'scrape_crime.crime': {
- 'Meta': {'ordering': "['description']", 'object_name': 'Crime'},
- 'arrest': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'beat': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': "''"}),
- 'block': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': "''"}),
- 'case_number': ('django.db.models.fields.CharField', [], {'max_length': '255', 'unique': 'True', 'null': 'True', 'blank': "''"}),
- 'crime_coordinates': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['scrape_crime.Coordinates']", 'null': 'True', 'blank': 'True'}),
- 'date': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': "''"}),
- 'description': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': "''"}),
- 'district': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': "''"}),
- 'domestic': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
- 'fbi_code': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': 'True'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'iucr': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': "''"}),
- 'neighborhood': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['scrape_crime.Neighborhood']", 'null': 'True', 'blank': 'True'}),
- 'primary_type': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': "''"}),
- 'updated_on': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': "''"}),
- 'ward': ('django.db.models.fields.CharField', [], {'max_length': '255', 'null': 'True', 'blank': "''"})
- },
- u'scrape_crime.neighborhood': {
- 'Meta': {'object_name': 'Neighborhood'},
- 'area_number': ('django.db.models.fields.IntegerField', [], {'default': 'False'}),
- 'coordinates': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['scrape_crime.Coordinates']", 'symmetrical': 'False'}),
- u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
- 'name': ('django.db.models.fields.CharField', [], {'default': 'False', 'unique': 'True', 'max_length': '255'})
- }
- }
-
- complete_apps = ['scrape_crime']

0 comments on commit 2d9a2d4

Please sign in to comment.