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 'Attribute', fields ['entity_object_id']
12 db.create_index('philo_attribute', ['entity_object_id'])
14 # Adding index on 'Attribute', fields ['value_object_id']
15 db.create_index('philo_attribute', ['value_object_id'])
17 # Adding index on 'Attribute', fields ['key']
18 db.create_index('philo_attribute', ['key'])
21 def backwards(self, orm):
23 # Removing index on 'Attribute', fields ['entity_object_id']
24 db.delete_index('philo_attribute', ['entity_object_id'])
26 # Removing index on 'Attribute', fields ['value_object_id']
27 db.delete_index('philo_attribute', ['value_object_id'])
29 # Removing index on 'Attribute', fields ['key']
30 db.delete_index('philo_attribute', ['key'])
34 'contenttypes.contenttype': {
35 'Meta': {'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
36 'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
37 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
38 'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
39 'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
42 'Meta': {'unique_together': "(('key', 'entity_content_type', 'entity_object_id'), ('value_content_type', 'value_object_id'))", 'object_name': 'Attribute'},
43 'entity_content_type': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'attribute_entity_set'", 'to': "orm['contenttypes.ContentType']"}),
44 'entity_object_id': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'}),
45 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
46 'key': ('django.db.models.fields.CharField', [], {'max_length': '255', 'db_index': 'True'}),
47 'value_content_type': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'attribute_value_set'", 'null': 'True', 'to': "orm['contenttypes.ContentType']"}),
48 'value_object_id': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True', 'null': 'True', 'blank': 'True'})
51 'Meta': {'object_name': 'Collection'},
52 'description': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
53 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
54 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'})
56 'philo.collectionmember': {
57 'Meta': {'object_name': 'CollectionMember'},
58 'collection': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'members'", 'to': "orm['philo.Collection']"}),
59 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
60 'index': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True', 'blank': 'True'}),
61 'member_content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
62 'member_object_id': ('django.db.models.fields.PositiveIntegerField', [], {})
65 'Meta': {'object_name': 'Contentlet'},
66 'content': ('philo.models.fields.TemplateField', [], {}),
67 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
68 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
69 'page': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'contentlets'", 'to': "orm['philo.Page']"})
71 'philo.contentreference': {
72 'Meta': {'object_name': 'ContentReference'},
73 'content_id': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True', 'blank': 'True'}),
74 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']"}),
75 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
76 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
77 'page': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'contentreferences'", 'to': "orm['philo.Page']"})
80 'Meta': {'object_name': 'File'},
81 'file': ('django.db.models.fields.files.FileField', [], {'max_length': '100'}),
82 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
83 'mimetype': ('django.db.models.fields.CharField', [], {'max_length': '255'})
85 'philo.foreignkeyvalue': {
86 'Meta': {'object_name': 'ForeignKeyValue'},
87 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']", 'null': 'True', 'blank': 'True'}),
88 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
89 'object_id': ('django.db.models.fields.PositiveIntegerField', [], {'null': 'True', 'blank': 'True'})
92 'Meta': {'object_name': 'JSONValue'},
93 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
94 'value': ('philo.models.fields.JSONField', [], {'default': "'null'"})
96 'philo.manytomanyvalue': {
97 'Meta': {'object_name': 'ManyToManyValue'},
98 'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['contenttypes.ContentType']", 'null': 'True', 'blank': 'True'}),
99 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
100 'values': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'to': "orm['philo.ForeignKeyValue']", 'null': 'True', 'blank': 'True'})
103 'Meta': {'object_name': 'Node'},
104 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
105 'level': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'}),
106 'lft': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'}),
107 'parent': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'children'", 'null': 'True', 'to': "orm['philo.Node']"}),
108 'rght': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'}),
109 'slug': ('django.db.models.fields.SlugField', [], {'max_length': '255', 'db_index': 'True'}),
110 'tree_id': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'}),
111 'view_content_type': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'node_view_set'", 'to': "orm['contenttypes.ContentType']"}),
112 'view_object_id': ('django.db.models.fields.PositiveIntegerField', [], {})
115 'Meta': {'object_name': 'Page'},
116 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
117 'template': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'pages'", 'to': "orm['philo.Template']"}),
118 'title': ('django.db.models.fields.CharField', [], {'max_length': '255'})
121 'Meta': {'object_name': 'Redirect'},
122 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
123 'reversing_parameters': ('philo.models.fields.JSONField', [], {'blank': 'True'}),
124 'status_code': ('django.db.models.fields.IntegerField', [], {'default': '302'}),
125 'target_node': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'philo_redirect_related'", 'null': 'True', 'to': "orm['philo.Node']"}),
126 'url_or_subpath': ('django.db.models.fields.CharField', [], {'max_length': '200', 'blank': 'True'})
129 'Meta': {'object_name': 'Tag'},
130 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
131 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
132 'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '255', 'db_index': 'True'})
135 'Meta': {'object_name': 'Template'},
136 'code': ('philo.models.fields.TemplateField', [], {}),
137 'documentation': ('django.db.models.fields.TextField', [], {'null': 'True', 'blank': 'True'}),
138 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
139 'level': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'}),
140 'lft': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'}),
141 'mimetype': ('django.db.models.fields.CharField', [], {'default': "'text/html'", 'max_length': '255'}),
142 'name': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
143 'parent': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'children'", 'null': 'True', 'to': "orm['philo.Template']"}),
144 'rght': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'}),
145 'slug': ('django.db.models.fields.SlugField', [], {'max_length': '255', 'db_index': 'True'}),
146 'tree_id': ('django.db.models.fields.PositiveIntegerField', [], {'db_index': 'True'})
150 complete_apps = ['philo']