Revision d323abef cloudcms/migrate/cloudcmsfaq/0001_initial.py
b/cloudcms/migrate/cloudcmsfaq/0001_initial.py | ||
---|---|---|
5 | 5 |
from django.db import models |
6 | 6 |
|
7 | 7 |
class Migration(SchemaMigration): |
8 |
|
|
8 |
|
|
9 |
depends_on = ( |
|
10 |
("cloudcms", "0011_auto__del_field_service_title_faq__del_field_service_title_userguide__"), |
|
11 |
) |
|
12 |
|
|
9 | 13 |
def forwards(self, orm): |
10 |
|
|
14 |
|
|
11 | 15 |
# Adding model 'Category' |
12 | 16 |
db.create_table('cloudcmsfaq_category', ( |
13 | 17 |
('ordering', self.gf('django.db.models.fields.SmallIntegerField')(default=0)), |
... | ... | |
49 | 53 |
('application', models.ForeignKey(orm['cloudcms.application'], null=False)) |
50 | 54 |
)) |
51 | 55 |
db.create_unique('cloudcmsfaq_question_application', ['question_id', 'application_id']) |
52 |
|
|
53 |
|
|
56 |
|
|
57 |
|
|
54 | 58 |
def backwards(self, orm): |
55 |
|
|
59 |
|
|
56 | 60 |
# Deleting model 'Category' |
57 | 61 |
db.delete_table('cloudcmsfaq_category') |
58 | 62 |
|
... | ... | |
64 | 68 |
|
65 | 69 |
# Removing M2M table for field application on 'Question' |
66 | 70 |
db.delete_table('cloudcmsfaq_question_application') |
67 |
|
|
68 |
|
|
71 |
|
|
72 |
|
|
69 | 73 |
models = { |
70 | 74 |
'auth.group': { |
71 | 75 |
'Meta': {'object_name': 'Group'}, |
... | ... | |
174 | 178 |
'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) |
175 | 179 |
} |
176 | 180 |
} |
177 |
|
|
181 |
|
|
178 | 182 |
complete_apps = ['cloudcmsfaq'] |
Also available in: Unified diff