本文整理汇总了Python中south.db.db.delete_index方法的典型用法代码示例。如果您正苦于以下问题:Python db.delete_index方法的具体用法?Python db.delete_index怎么用?Python db.delete_index使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类south.db.db
的用法示例。
在下文中一共展示了db.delete_index方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: backwards
# 需要导入模块: from south.db import db [as 别名]
# 或者: from south.db.db import delete_index [as 别名]
def backwards(self, orm):
# Removing index on 'Comment', fields ['reply_content']
db.delete_index('canvas_comment', ['reply_content_id'])
# Removing index on 'Comment', fields ['parent_content']
db.delete_index('canvas_comment', ['parent_content_id'])
# Renaming column for 'Comment.parent_content' to match new field type.
db.rename_column('canvas_comment', 'parent_content_id', 'parent_content')
# Changing field 'Comment.parent_content'
db.alter_column('canvas_comment', 'parent_content', self.gf('django.db.models.fields.CharField')(max_length=32))
# Renaming column for 'Comment.reply_content' to match new field type.
db.rename_column('canvas_comment', 'reply_content_id', 'reply_content')
# Changing field 'Comment.reply_content'
db.alter_column('canvas_comment', 'reply_content', self.gf('django.db.models.fields.CharField')(max_length=32))
开发者ID:canvasnetworks,项目名称:canvas,代码行数:19,代码来源:0021_auto__chg_field_comment_parent_content__chg_field_comment_reply_conten.py
示例2: backwards
# 需要导入模块: from south.db import db [as 别名]
# 或者: from south.db.db import delete_index [as 别名]
def backwards(self, orm):
# Removing index on 'Instance', fields ['xform']
db.delete_index('odk_logger_instance', ['xform_id', 'is_deleted'])
# Deleting field 'Instance.is_deleted'
db.delete_column('odk_logger_instance', 'is_deleted')
示例3: backwards
# 需要导入模块: from south.db import db [as 别名]
# 或者: from south.db.db import delete_index [as 别名]
def backwards(self, orm):
# Removing index on 'Tweet', fields ['created_at']
db.delete_index(u'twitter_stream_tweet', ['created_at'])
# Removing index on 'Tweet', fields ['analyzed_by']
db.delete_index(u'twitter_stream_tweet', ['analyzed_by'])
开发者ID:michaelbrooks,项目名称:django-twitter-stream,代码行数:8,代码来源:0002_auto__add_index_tweet_analyzed_by__add_index_tweet_created_at.py
示例4: backwards
# 需要导入模块: from south.db import db [as 别名]
# 或者: from south.db.db import delete_index [as 别名]
def backwards(self, orm):
# Deleting field 'Event.last_update'
db.delete_index('backoffice_event', ['last_update'])
db.delete_column(u'backoffice_event', 'last_update')
示例5: backwards
# 需要导入模块: from south.db import db [as 别名]
# 或者: from south.db.db import delete_index [as 别名]
def backwards(self, orm):
# Removing index on 'Speaker', fields ['email']
db.delete_index(u'pyconkr_speaker', ['email'])
示例6: backwards
# 需要导入模块: from south.db import db [as 别名]
# 或者: from south.db.db import delete_index [as 别名]
def backwards(self, orm):
pass
# Removing index on 'FollowCategory', fields ['user']
#db.delete_index('canvas_followcategory', ['user_id'])
示例7: backwards
# 需要导入模块: from south.db import db [as 别名]
# 或者: from south.db.db import delete_index [as 别名]
def backwards(self, orm):
db.delete_index('canvas_comment', ['category_id', 'score'])
示例8: backwards
# 需要导入模块: from south.db import db [as 别名]
# 或者: from south.db.db import delete_index [as 别名]
def backwards(self, orm):
# Removing index on 'CommentPin', fields ['comment_id', 'user_id']
db.delete_index('canvas_commentpin', ['comment_id', 'user_id'])