0001_initial.py
1.27 KB
# -*- coding: utf-8 -*-
from south.utils import datetime_utils as 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 'FlatPage'
db.create_table(u'common_flatpage', (
(u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
('text_id', self.gf('django.db.models.fields.CharField')(max_length=20)),
('title', self.gf('django.db.models.fields.CharField')(max_length=160)),
('html_content', self.gf('django.db.models.fields.TextField')()),
))
db.send_create_signal(u'common', ['FlatPage'])
def backwards(self, orm):
# Deleting model 'FlatPage'
db.delete_table(u'common_flatpage')
models = {
u'common.flatpage': {
'Meta': {'object_name': 'FlatPage'},
'html_content': ('django.db.models.fields.TextField', [], {}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'text_id': ('django.db.models.fields.CharField', [], {'max_length': '20'}),
'title': ('django.db.models.fields.CharField', [], {'max_length': '160'})
}
}
complete_apps = ['common']