3 from south.db import db
4 from south.v2 import SchemaMigration
5 from django.db import models
7 class Migration(SchemaMigration):
9 def forwards(self, orm):
11 # Adding index on 'Navigation', fields ['key']
12 db.create_index('shipherd_navigation', ['key'])
15 def backwards(self, orm):
17 # Removing index on 'Navigation', fields ['key']
18 db.delete_index('shipherd_navigation', ['key'])
22 'contenttypes.contenttype': {
23 'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
24 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
25 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
26 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
27 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
30 'Meta': {'unique_together': "(('key', 'entity_content_type', 'entity_object_id'), ('value_content_type', 'value_object_id'))", 'object_name': 'Attribute'},
31 'entity_content_type': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'attribute_entity_set'", 'to': "orm['contenttypes.ContentType']"}),
32 'entity_object_id': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'}),
33 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
34 'key': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}),
35 'value_content_type': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'attribute_value_set'", 'null': 'True', 'to': "orm['contenttypes.ContentType']"}),
36 'value_object_id': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True', 'null': 'True', 'blank': 'True'})
39 'Meta': {'object_name': 'Node'},
40 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
41 'level': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'}),
42 'lft': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'}),
43 'parent': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'children'", 'null': 'True', 'to': "orm['philo.Node']"}),
44 'rght': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'}),
45 'slug': ('django.db.models.fields.SlugField', [], {'max_length': '255', 'db_index': 'True'}),
46 'tree_id': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'}),
47 'view_content_type': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'node_view_set'", 'to': "orm['contenttypes.ContentType']"}),
48 'view_object_id': ('django.db.models.fields.PositiveIntegerField', [], {})
50 'shipherd.navigation': {
51 'Meta': {'unique_together': "(('node', 'key'),)", 'object_name': 'Navigation'},
52 'depth': ('django.db.models.fields.PositiveSmallIntegerField', [], {'default': '3'}),
53 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
54 'key': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}),
55 'node': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'navigation_set'", 'to': "orm['philo.Node']"})
57 'shipherd.navigationitem': {
58 'Meta': {'object_name': 'NavigationItem'},
59 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
60 'level': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'}),
61 'lft': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'}),
62 'navigation': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'roots'", 'null': 'True', 'to': "orm['shipherd.Navigation']"}),
63 'order': ('django.db.models.fields.PositiveSmallIntegerField', [], {'default': '0'}),
64 'parent': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'children'", 'null': 'True', 'to': "orm['shipherd.NavigationItem']"}),
65 'reversing_parameters': ('philo.models.fields.JSONField', [], {'blank': 'True'}),
66 'rght': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'}),
67 'slug': ('django.db.models.fields.SlugField', [], {'max_length': '255', 'db_index': 'True'}),
68 'target_node': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'shipherd_navigationitem_related'", 'null': 'True', 'to': "orm['philo.Node']"}),
69 'text': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
70 'tree_id': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'}),
71 'url_or_subpath': ('django.db.models.fields.CharField', [], {'max_length': '200', 'blank': 'True'})
75 complete_apps = ['shipherd']