# encoding: utf-8
import 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 'User'
db.create_table('forum_user', (
('website', self.gf('django.db.models.fields.URLField')(max_length=200, blank=True)),
('user_ptr', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['auth.User'], unique=True, primary_key=True)),
('hide_ignored_questions', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)),
('is_approved', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)),
('email_isvalid', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)),
('real_name', self.gf('django.db.models.fields.CharField')(max_length=100, blank=True)),
('about', self.gf('django.db.models.fields.TextField')(blank=True)),
('silver', self.gf('django.db.models.fields.SmallIntegerField')(default=0)),
('date_of_birth', self.gf('django.db.models.fields.DateField')(null=True, blank=True)),
('reputation', self.gf('django.db.models.fields.PositiveIntegerField')(default=1)),
('gravatar', self.gf('django.db.models.fields.CharField')(max_length=32)),
('location', self.gf('django.db.models.fields.CharField')(max_length=100, blank=True)),
('tag_filter_setting', self.gf('django.db.models.fields.CharField')(default='ignored', max_length=16)),
('gold', self.gf('django.db.models.fields.SmallIntegerField')(default=0)),
('last_seen', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now)),
('email_key', self.gf('django.db.models.fields.CharField')(max_length=32, null=True)),
('bronze', self.gf('django.db.models.fields.SmallIntegerField')(default=0)),
('questions_per_page', self.gf('django.db.models.fields.SmallIntegerField')(default=10)),
))
db.send_create_signal('forum', ['User'])
# Adding model 'Activity'
db.create_table(u'activity', (
('is_auditted', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)),
('object_id', self.gf('django.db.models.fields.PositiveIntegerField')()),
('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['forum.User'])),
('content_type', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['contenttypes.ContentType'])),
('active_at', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now)),
('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
('activity_type', self.gf('django.db.models.fields.SmallIntegerField')()),
))
db.send_create_signal('forum', ['Activity'])
# Adding model 'SubscriptionSettings'
db.create_table('forum_subscriptionsettings', (
('questions_asked', self.gf('django.db.models.fields.BooleanField')(default=True, blank=True)),
('questions_viewed', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)),
('notify_comments', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)),
('new_question', self.gf('django.db.models.fields.CharField')(default='d', max_length=1)),
('all_questions', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)),
('new_question_watched_tags', self.gf('django.db.models.fields.CharField')(default='i', max_length=1)),
('questions_answered', self.gf('django.db.models.fields.BooleanField')(default=True, blank=True)),
('notify_comments_own_post', self.gf('django.db.models.fields.BooleanField')(default=True, blank=True)),
('questions_commented', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)),
('subscribed_questions', self.gf('django.db.models.fields.CharField')(default='i', max_length=1)),
('notify_reply_to_comments', self.gf('django.db.models.fields.BooleanField')(default=True, blank=True)),
('member_joins', self.gf('django.db.models.fields.CharField')(default='n', max_length=1)),
('user', self.gf('django.db.models.fields.related.OneToOneField')(related_name='subscription_settings', unique=True, to=orm['forum.User'])),
('notify_answers', self.gf('django.db.models.fields.BooleanField')(default=True, blank=True)),
('enable_notifications', self.gf('django.db.models.fields.BooleanField')(default=True, blank=True)),
('all_questions_watched_tags', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)),
('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
('notify_accepted', self.gf('django.db.models.fields.BooleanField')(default=False, blank=True)),
))
db.send_create_signal('forum', ['SubscriptionSettings'])
# Adding model 'ValidationHash'
db.create_table('forum_validationhash', (
('hash_code', self.gf('django.db.models.fields.CharField')(unique=True, max_length=255)),
('seed', self.gf('django.db.models.fields.CharField')(max_length=12)),
('expiration', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime(2010, 4, 7, 10, 36, 23, 812000))),
('type', self.gf('django.db.models.fields.CharField')(max_length=12)),
('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
('user', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['forum.User'])),
))
db.send_create_signal('forum', ['ValidationHash'])
# Adding unique constraint on 'ValidationHash', fields ['user', 'type']
db.create_unique('forum_validationhash', ['user_id', 'type'])
# Adding model 'AuthKeyUserAssociation'
db.create_table('forum_authkeyuserassociation', (
('added_at', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now)),
('user', self.gf('django.db.models.fields.related.ForeignKey')(related_name='auth_keys', to=orm['forum.User'])),
('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
('key', self.gf('django.db.models.fields.CharField')(unique=True, max_length=255)),
('provider', self.gf('django.db.models.fields.CharField')(max_length=64)),
))
db.send_create_signal('forum', ['AuthKeyUserAssociation'])
# Adding model 'Vote'
db.create_table(u'vote', (
('object_id', self.gf('django.db.models.fields.PositiveIntegerField')()),
('voted_at', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now)),
('user', self.gf('django.db.models.fields.related.ForeignKey')(related_name='votes', to=orm['forum.User'])),
('content_type', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['contenttypes.ContentType'])),
('vote', self.gf('django.db.models.fields.SmallIntegerField')()),
('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
))
db.send_create_signal('forum', ['Vote'])
# Adding unique constraint on 'Vote', fields ['content_type', 'object_id', 'user']
db.create_unique(u'vote', ['content_type_id', 'object_id', 'user_id'])
# Adding model 'FlaggedItem'
db.create_table(u'flagged_item', (
('object_id', self.gf('django.db.models.fields.PositiveIntegerField')()),
('flagged_at', self.gf('django.db.models.fields.DateTimeField')(defa
没有合适的资源?快使用搜索试试~ 我知道了~
osqa 开源问答软件
5星 · 超过95%的资源 需积分: 9 24 下载量 155 浏览量
2011-04-16
13:30:44
上传
评论
收藏 1.6MB GZ 举报
温馨提示
共548个文件
py:239个
html:135个
png:64个
fantasy-island-0.9.0-beta3.tar.gz
资源推荐
资源详情
资源评论
收起资源包目录
osqa 开源问答软件 (548个子文件)
flot-build.bat 106B
compress.bat 94B
style.css 30KB
default.css 25KB
wmd.css 3KB
user.css 2KB
auth.css 1KB
djstyle_admin.css 1KB
admin.css 961B
jquery.autocomplete.css 838B
prettify.css 689B
openid.css 681B
markdown_help.css 667B
settings_local.py.dist 1KB
osqa.wsgi.dist 495B
favicon.gif 4KB
indicator.gif 2KB
logo.gif 2KB
aol.gif 2KB
facebook.gif 2KB
djangomade124x25_grey.gif 2KB
google.gif 2KB
yahoo.gif 2KB
medala_on.gif 957B
openid.gif 910B
medala.gif 801B
openid.gif 740B
new.gif 635B
quest-bg.gif 294B
openid-inputicon.gif 237B
expander-arrow-show.gif 135B
expander-arrow-hide.gif 126B
box-arrow.gif 69B
bullet_green.gif 64B
dot-g.gif 61B
dot-list.gif 56B
dash.gif 44B
nodeman.html 24KB
question.html 14KB
markdown_help.html 11KB
djstyle_base.html 8KB
signin.html 8KB
ask.html 7KB
question_edit.html 7KB
base_content.html 6KB
stats.html 6KB
running.html 6KB
moderation.html 5KB
comments.html 5KB
complete.html 5KB
edit.html 4KB
answer_edit.html 4KB
info.html 4KB
index.html 4KB
dashboard.html 4KB
subscriptions_settings.html 3KB
question_retag.html 3KB
wmd-test.html 3KB
digest.html 3KB
revisions.html 3KB
question_summary_list_roll.html 3KB
badges.html 2KB
tag_selector.html 2KB
tag_selector.html 2KB
item.html 2KB
feedback.html 2KB
welcome_email.html 2KB
404.html 2KB
subscription_status.html 2KB
auth_settings.html 2KB
newquestion.html 2KB
newcomment.html 2KB
header.html 2KB
tags.html 2KB
subscriptions.html 2KB
users.html 2KB
base.html 2KB
reputation.html 2KB
online_users.html 2KB
user.html 2KB
button.html 2KB
account_settings.html 2KB
base.html 2KB
suspend_user.html 1KB
reopen.html 1KB
newanswer.html 1KB
401.html 1KB
paginator.html 1KB
403.html 1KB
badge.html 1KB
edit_page.html 1KB
signature.html 1KB
newmember.html 1KB
answeraccepted.html 1KB
questions.html 1KB
set.html 1KB
temp_login_email.html 1KB
close.html 1KB
mail_validation.html 1KB
temp_login_request.html 1KB
共 548 条
- 1
- 2
- 3
- 4
- 5
- 6
资源评论
- TeaEra2014-03-08谢谢楼主,已经成功使用!
小马迷途
- 粉丝: 11
- 资源: 5
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功