本文整理汇总了Python中south.db.db.delete_unique方法的典型用法代码示例。如果您正苦于以下问题:Python db.delete_unique方法的具体用法?Python db.delete_unique怎么用?Python db.delete_unique使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类south.db.db
的用法示例。
在下文中一共展示了db.delete_unique方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: backwards
# 需要导入模块: from south.db import db [as 别名]
# 或者: from south.db.db import delete_unique [as 别名]
def backwards(self, orm):
# Removing unique constraint on 'EventLogData', fields ['eventlog',
# 'lang']
db.delete_unique('translate_eventlogdata', ['eventlog_id', 'lang_id'])
# Removing unique constraint on 'EventData', fields ['event', 'lang']
db.delete_unique('translate_eventdata', ['event_id', 'lang_id'])
# Deleting model 'Lang'
db.delete_table('translate_lang')
# Deleting model 'EventData'
db.delete_table('translate_eventdata')
# Deleting model 'EventLogData'
db.delete_table('translate_eventlogdata')
示例2: backwards
# 需要导入模块: from south.db import db [as 别名]
# 或者: from south.db.db import delete_unique [as 别名]
def backwards(self, orm):
# Removing unique constraint on 'MySecondModel', fields ['name']
db.delete_unique('test_app_mysecondmodel', ['name'])
开发者ID:plumdog,项目名称:django_migration_testcase,代码行数:5,代码来源:0007_auto__add_unique_mysecondmodel_name.py
示例3: backwards
# 需要导入模块: from south.db import db [as 别名]
# 或者: from south.db.db import delete_unique [as 别名]
def backwards(self, orm):
# Removing unique constraint on 'MetaData', fields ['xform', 'data_type', 'data_value']
db.delete_unique(u'main_metadata', ['xform_id', 'data_type', 'data_value'])
开发者ID:awemulya,项目名称:kobo-predict,代码行数:5,代码来源:0012_auto__add_unique_metadata_xform_data_type_data_value.py
示例4: backwards
# 需要导入模块: from south.db import db [as 别名]
# 或者: from south.db.db import delete_unique [as 别名]
def backwards(self, orm):
# Removing unique constraint on 'ProjectXForm', fields ['xform', 'project']
db.delete_unique('api_projectxform', ['xform_id', 'project_id'])
# Deleting model 'ProjectXForm'
db.delete_table('api_projectxform')
开发者ID:awemulya,项目名称:kobo-predict,代码行数:8,代码来源:0003_auto__add_projectxform__add_unique_projectxform_xform_project.py
示例5: backwards
# 需要导入模块: from south.db import db [as 别名]
# 或者: from south.db.db import delete_unique [as 别名]
def backwards(self, orm):
# Removing unique constraint on 'Project', fields ['name', 'organization']
db.delete_unique('api_project', ['name', 'organization_id'])
# Deleting model 'Project'
db.delete_table('api_project')
# Removing M2M table for field projects on 'Team'
db.delete_table('api_team_projects')
开发者ID:awemulya,项目名称:kobo-predict,代码行数:11,代码来源:0002_auto__add_project__add_unique_project_name_organization.py
示例6: backwards
# 需要导入模块: from south.db import db [as 别名]
# 或者: from south.db.db import delete_unique [as 别名]
def backwards(self, orm):
# Removing unique constraint on 'XForm', fields ['sms_id_string', 'user']
db.delete_unique('odk_logger_xform', ['sms_id_string', 'user_id'])
# Changing field 'XForm.sms_id_string'
db.alter_column('odk_logger_xform', 'sms_id_string', self.gf('django.db.models.fields.SlugField')(max_length=50, null=True))
开发者ID:awemulya,项目名称:kobo-predict,代码行数:9,代码来源:0026_auto__chg_field_xform_sms_id_string__add_unique_xform_sms_id_string_us.py
示例7: backwards
# 需要导入模块: from south.db import db [as 别名]
# 或者: from south.db.db import delete_unique [as 别名]
def backwards(self, orm):
# Removing unique constraint on 'SurveyType', fields ['slug']
db.delete_unique('odk_logger_surveytype', ['slug'])
示例8: backwards
# 需要导入模块: from south.db import db [as 别名]
# 或者: from south.db.db import delete_unique [as 别名]
def backwards(self, orm):
# Removing unique constraint on 'XForm', fields ['id_string', 'user']
db.delete_unique('odk_logger_xform', ['id_string', 'user_id'])
# Adding unique constraint on 'XForm', fields ['id_string']
db.create_unique('odk_logger_xform', ['id_string'])
开发者ID:awemulya,项目名称:kobo-predict,代码行数:9,代码来源:0002_auto__del_unique_xform_id_string__add_unique_xform_id_string_user.py
示例9: backwards
# 需要导入模块: from south.db import db [as 别名]
# 或者: from south.db.db import delete_unique [as 别名]
def backwards(self, orm):
# Removing unique constraint on 'RestService', fields ['service_url', 'name', 'xform']
db.delete_unique('restservice_restservice', ['service_url', 'name', 'xform_id'])
开发者ID:awemulya,项目名称:kobo-predict,代码行数:6,代码来源:0002_auto__add_unique_restservice_service_url_name_xform.py
示例10: backwards
# 需要导入模块: from south.db import db [as 别名]
# 或者: from south.db.db import delete_unique [as 别名]
def backwards(self, orm):
# Removing unique constraint on 'Export', fields ['filename', 'xform']
db.delete_unique('odk_viewer_export', ['filename', 'xform_id'])
示例11: backwards
# 需要导入模块: from south.db import db [as 别名]
# 或者: from south.db.db import delete_unique [as 别名]
def backwards(self, orm):
# Removing unique constraint on 'IntrinsicImagesDecomposition', fields ['photo', 'algorithm']
db.delete_unique(u'intrinsic_intrinsicimagesdecomposition', ['photo_id', 'algorithm_id'])
# Removing unique constraint on 'IntrinsicImagesAlgorithm', fields ['slug', 'parameters']
db.delete_unique(u'intrinsic_intrinsicimagesalgorithm', ['slug', 'parameters'])
# Removing unique constraint on 'IntrinsicPointComparison', fields ['point1', 'point2']
db.delete_unique(u'intrinsic_intrinsicpointcomparison', ['point1_id', 'point2_id'])
# Deleting model 'IntrinsicPoint'
db.delete_table(u'intrinsic_intrinsicpoint')
# Deleting model 'IntrinsicPointOpacityResponse'
db.delete_table(u'intrinsic_intrinsicpointopacityresponse')
# Deleting model 'IntrinsicPointComparison'
db.delete_table(u'intrinsic_intrinsicpointcomparison')
# Deleting model 'IntrinsicPointComparisonResponse'
db.delete_table(u'intrinsic_intrinsicpointcomparisonresponse')
# Deleting model 'IntrinsicImagesAlgorithm'
db.delete_table(u'intrinsic_intrinsicimagesalgorithm')
# Deleting model 'IntrinsicImagesDecomposition'
db.delete_table(u'intrinsic_intrinsicimagesdecomposition')
示例12: backwards
# 需要导入模块: from south.db import db [as 别名]
# 或者: from south.db.db import delete_unique [as 别名]
def backwards(self, orm):
# Removing unique constraint on 'EventLog', fields ['eventlog', 'name']
db.delete_unique(u'socialnetwork_eventlog', ['eventlog_id', 'name'])
# Removing unique constraint on 'Event', fields ['event', 'name']
db.delete_unique(u'socialnetwork_event', ['event_id', 'name'])
# Deleting model 'Event'
db.delete_table(u'socialnetwork_event')
# Deleting model 'EventLog'
db.delete_table(u'socialnetwork_eventlog')
示例13: backwards
# 需要导入模块: from south.db import db [as 别名]
# 或者: from south.db.db import delete_unique [as 别名]
def backwards(self, orm):
# Removing unique constraint on 'DashboardPreferences', fields ['dashboard_id', 'user']
db.delete_unique('admin_tools_dashboard_preferences', ['dashboard_id', 'user_id'])
开发者ID:django-admin-tools,项目名称:django-admin-tools,代码行数:6,代码来源:0003_auto__add_unique_dashboardpreferences_dashboard_id_user.py
示例14: backwards
# 需要导入模块: from south.db import db [as 别名]
# 或者: from south.db.db import delete_unique [as 别名]
def backwards(self, orm):
# Removing unique constraint on 'MessageContact', fields ['um_from_user', 'um_to_user']
db.delete_unique(
"umessages_messagecontact", ["um_from_user_id", "um_to_user_id"]
)
# Deleting model 'MessageContact'
db.delete_table("umessages_messagecontact")
# Deleting model 'MessageRecipient'
db.delete_table("umessages_messagerecipient")
# Deleting model 'Message'
db.delete_table("umessages_message")
示例15: backwards
# 需要导入模块: from south.db import db [as 别名]
# 或者: from south.db.db import delete_unique [as 别名]
def backwards(self, orm):
# Removing unique constraint on 'DashboardWidgetSettings', fields ['widget_name', 'setting_name']
db.delete_unique(u'dashboard_app_dashboardwidgetsettings', ['widget_name', 'setting_name'])
# Deleting model 'DashboardWidgetLastUpdate'
db.delete_table(u'dashboard_app_dashboardwidgetlastupdate')
# Deleting model 'DashboardWidgetSettings'
db.delete_table(u'dashboard_app_dashboardwidgetsettings')