root / cloudcms / migrations / 0003_auto__add_field_application_footer_top__add_field_application_footer_b.py @ 9df24f38
History | View | Annotate | Download (4.2 kB)
1 |
# encoding: utf-8
|
---|---|
2 |
import datetime |
3 |
from south.db import db |
4 |
from south.v2 import SchemaMigration |
5 |
from django.db import models |
6 |
|
7 |
class Migration(SchemaMigration): |
8 |
|
9 |
def forwards(self, orm): |
10 |
|
11 |
# Adding field 'Application.footer_top'
|
12 |
db.add_column('cloudcms_application', 'footer_top', self.gf('django.db.models.fields.TextField')(default='', blank=True), keep_default=False) |
13 |
|
14 |
# Adding field 'Application.footer_bottom'
|
15 |
db.add_column('cloudcms_application', 'footer_bottom', self.gf('django.db.models.fields.TextField')(default='', blank=True), keep_default=False) |
16 |
|
17 |
|
18 |
def backwards(self, orm): |
19 |
|
20 |
# Deleting field 'Application.footer_top'
|
21 |
db.delete_column('cloudcms_application', 'footer_top') |
22 |
|
23 |
# Deleting field 'Application.footer_bottom'
|
24 |
db.delete_column('cloudcms_application', 'footer_bottom') |
25 |
|
26 |
|
27 |
models = { |
28 |
'cloudcms.application': {
|
29 |
'Meta': {'object_name': 'Application'}, |
30 |
'app_url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'null': 'True', 'blank': 'True'}), |
31 |
'code': ('django.db.models.fields.CharField', [], {'max_length': '100'}), |
32 |
'extra_styles': ('django.db.models.fields.TextField', [], {'default': "''", 'blank': 'True'}), |
33 |
'facebook_username': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}), |
34 |
'footer_bottom': ('django.db.models.fields.TextField', [], {'default': "''", 'blank': 'True'}), |
35 |
'footer_top': ('django.db.models.fields.TextField', [], {'default': "''", 'blank': 'True'}), |
36 |
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
37 |
'linked_in_username': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}), |
38 |
'logo': ('feincms.module.medialibrary.fields.MediaFileForeignKey', [], {'to': "orm['medialibrary.MediaFile']", 'null': 'True', 'blank': 'True'}), |
39 |
'show_twitter_feed_on_top': ('django.db.models.fields.BooleanField', [], {'default': 'False', 'blank': 'True'}), |
40 |
'site': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['sites.Site']"}), |
41 |
'title': ('django.db.models.fields.CharField', [], {'max_length': '255'}), |
42 |
'twitter_username': ('django.db.models.fields.CharField', [], {'max_length': '255', 'blank': 'True'}) |
43 |
}, |
44 |
'medialibrary.category': {
|
45 |
'Meta': {'object_name': 'Category'}, |
46 |
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
47 |
'parent': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'children'", 'null': 'True', 'to': "orm['medialibrary.Category']"}), |
48 |
'slug': ('django.db.models.fields.SlugField', [], {'max_length': '150', 'db_index': 'True'}), |
49 |
'title': ('django.db.models.fields.CharField', [], {'max_length': '200'}) |
50 |
}, |
51 |
'medialibrary.mediafile': {
|
52 |
'Meta': {'object_name': 'MediaFile'}, |
53 |
'categories': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'to': "orm['medialibrary.Category']", 'null': 'True', 'blank': 'True'}), |
54 |
'copyright': ('django.db.models.fields.CharField', [], {'max_length': '200', 'blank': 'True'}), |
55 |
'created': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}), |
56 |
'file': ('django.db.models.fields.files.FileField', [], {'max_length': '255'}), |
57 |
'file_size': ('django.db.models.fields.IntegerField', [], {'null': 'True', 'blank': 'True'}), |
58 |
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
59 |
'type': ('django.db.models.fields.CharField', [], {'max_length': '12'}) |
60 |
}, |
61 |
'sites.site': {
|
62 |
'Meta': {'object_name': 'Site', 'db_table': "'django_site'"}, |
63 |
'domain': ('django.db.models.fields.CharField', [], {'max_length': '100'}), |
64 |
'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), |
65 |
'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}) |
66 |
} |
67 |
} |
68 |
|
69 |
complete_apps = ['cloudcms']
|