本文整理汇总了Python中south.db.db.delete_unique函数的典型用法代码示例。如果您正苦于以下问题:Python delete_unique函数的具体用法?Python delete_unique怎么用?Python delete_unique使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了delete_unique函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: backwards
def backwards(self, orm):
# Removing unique constraint on 'StateValueArgument', fields ['state_value', 'method_parameter']
db.delete_unique('core_statevalueargument', ['state_value_id', 'method_parameter_id'])
# Deleting model 'StateValueArgument'
db.delete_table('core_statevalueargument')
开发者ID:socialdevices,项目名称:manager,代码行数:7,代码来源:0011_auto__add_statevalueargument__add_unique_statevalueargument_state_valu.py
示例2: forwards
def forwards(self, orm):
# Removing unique constraint on 'Task', fields ['model_solution']
db.delete_unique('tasks_task', ['model_solution_id'])
# Changing field 'Task.model_solution'
db.alter_column('tasks_task', 'model_solution_id', self.gf('django.db.models.fields.related.ForeignKey')(null=True, to=orm['solutions.Solution']))
开发者ID:juliushaertl,项目名称:Praktomat,代码行数:7,代码来源:0005_auto__chg_field_task_model_solution__del_unique_task_model_solution.py
示例3: backwards
def backwards(self, orm):
# Removing unique constraint on 'LegMinutes', fields ['id']
db.delete_unique('phillyleg_legminutes', ['id'])
# Adding field 'LegAction.minutes'
db.add_column('phillyleg_legaction', 'minutes', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['phillyleg.LegMinutes'], null=True), keep_default=False)
开发者ID:Alexander-M-Waldman,项目名称:councilmatic,代码行数:7,代码来源:0011_auto__del_field_legaction_minutes__add_field_legaction_minutes_tmpid__.py
示例4: backwards
def backwards(self, orm):
# Removing unique constraint on 'NewsTranslation', fields ['content_type', 'object_id', 'language']
db.delete_unique('reviewapp_newstranslation', ['content_type_id', 'object_id', 'language'])
# Deleting model 'NewsTranslation'
db.delete_table('reviewapp_newstranslation')
示例5: backwards
def backwards(self, orm):
# Removing unique constraint on 'GroupBookmark', fields ['project', 'user', 'group']
db.delete_unique('sentry_groupbookmark', ['project_id', 'user_id', 'group_id'])
# Deleting model 'GroupBookmark'
db.delete_table('sentry_groupbookmark')
开发者ID:CaseCommonsDevOps,项目名称:sentry,代码行数:7,代码来源:0034_auto__add_groupbookmark__add_unique_groupbookmark_project_user_group.py
示例6: backwards
def backwards(self, orm):
# Removing unique constraint on 'ProjectDomain', fields ['project', 'domain']
db.delete_unique('sentry_projectdomain', ['project_id', 'domain'])
# Deleting model 'ProjectDomain'
db.delete_table('sentry_projectdomain')
开发者ID:280185386,项目名称:sentry,代码行数:7,代码来源:0020_auto__add_projectdomain__add_unique_projectdomain_project_domain.py
示例7: forwards
def forwards(self, orm):
# Removing unique constraint on 'SMARTTest', fields ['smarttest_type', 'smarttest_disk']
db.delete_unique('system_smarttest', ['smarttest_type', 'smarttest_disk_id'])
# Deleting field 'SMARTTest.smarttest_disk'
db.delete_column('system_smarttest', 'smarttest_disk_id')
开发者ID:650elx,项目名称:middleware,代码行数:7,代码来源:0039_auto__del_field_smarttest_smarttest_disk__del_unique_smarttest_smartte.py
示例8: backwards
def backwards(self, orm):
# Removing unique constraint on 'Cart', fields ['serial_number']
db.delete_unique('cartmanager_cart', ['serial_number'])
# Changing field 'Cart.serial_number'
db.alter_column('cartmanager_cart', 'serial_number', self.gf('django.db.models.fields.CharField')(max_length=30, null=True))
开发者ID:andytus,项目名称:cascade,代码行数:7,代码来源:0016_auto__chg_field_cart_serial_number__add_unique_cart_serial_number.py
示例9: backwards
def backwards(self, orm):
# Removing unique constraint on 'UnitStats', fields ['unit']
db.delete_unique(u'Results_unitstats', ['unit_id'])
# Changing field 'UnitStats.unit'
db.alter_column(u'Results_unitstats', 'unit_id', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['ScenarioCreator.Unit']))
开发者ID:sniperpj21,项目名称:SpreadModel,代码行数:7,代码来源:0011_auto__chg_field_unitstats_unit__add_unique_unitstats_unit.py
示例10: forwards
def forwards(self, orm):
# Removing unique constraint on 'Event', fields ['slug']
db.delete_unique(u'aldryn_events_event', ['slug'])
# Adding field 'EventTranslation.slug_new'
db.add_column(u'aldryn_events_event_translation', 'slug_new',
self.gf('django.db.models.fields.SlugField')(default='', max_length=150, blank=True),
keep_default=False)
# Adding field 'EventTranslation.description_new'
db.add_column(u'aldryn_events_event_translation', 'description_new',
self.gf('django.db.models.fields.related.ForeignKey')(to=orm['cms.Placeholder'], null=True),
keep_default=False)
# Adding field 'EventTranslation.image_new'
db.add_column(u'aldryn_events_event_translation', 'image_new',
self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='event_images', null=True, on_delete=models.SET_NULL, to=orm['filer.Image']),
keep_default=False)
# Adding field 'EventTranslation.flyer_new'
db.add_column(u'aldryn_events_event_translation', 'flyer_new',
self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='event_flyers', null=True, on_delete=models.SET_NULL, to=orm['filer.File']),
keep_default=False)
# Changing field 'Event.slug'
db.alter_column(u'aldryn_events_event', 'slug', self.gf('django.db.models.fields.SlugField')(max_length=150, null=True))
开发者ID:Marketionist,项目名称:aldryn-events,代码行数:27,代码来源:0011_auto__add_field_eventtranslation_slug_new__add_field_eventtranslation_.py
示例11: backwards
def backwards(self, orm):
# Removing unique constraint on 'Field', fields ['_pass', 'key']
db.delete_unique('passbook_field', ['_pass_id', 'key'])
# Deleting model 'Signer'
db.delete_table('passbook_signer')
# Deleting model 'Pass'
db.delete_table('passbook_pass')
# Removing M2M table for field locations on 'Pass'
db.delete_table('passbook_pass_locations')
# Deleting model 'Barcode'
db.delete_table('passbook_barcode')
# Deleting model 'Field'
db.delete_table('passbook_field')
# Deleting model 'Location'
db.delete_table('passbook_location')
# Deleting model 'Device'
db.delete_table('passbook_device')
# Removing M2M table for field passes on 'Device'
db.delete_table('passbook_device_passes')
示例12: backwards
def backwards(self, orm):
# Removing unique constraint on 'SiteLeader', fields ['last_name', 'first_name']
db.delete_unique('bhp_research_protocol_siteleader', ['last_name', 'first_name'])
# Removing unique constraint on 'PrincipalInvestigator', fields ['last_name', 'first_name']
db.delete_unique('bhp_research_protocol_principalinvestigator', ['last_name', 'first_name'])
# Deleting model 'FundingSource'
db.delete_table('bhp_research_protocol_fundingsource')
# Deleting model 'PrincipalInvestigator'
db.delete_table('bhp_research_protocol_principalinvestigator')
# Deleting model 'SiteLeader'
db.delete_table('bhp_research_protocol_siteleader')
# Deleting model 'Protocol'
db.delete_table('bhp_research_protocol_protocol')
# Removing M2M table for field prinicipal_investigator on 'Protocol'
db.delete_table('bhp_research_protocol_protocol_prinicipal_investigator')
# Removing M2M table for field site_leader on 'Protocol'
db.delete_table('bhp_research_protocol_protocol_site_leader')
# Removing M2M table for field funding_source on 'Protocol'
db.delete_table('bhp_research_protocol_protocol_funding_source')
示例13: forwards
def forwards(self, orm):
# Removing unique constraint on 'ProductStockUnit', fields ['product', 'stock']
db.delete_unique('catalog_productstockunit', ['product_id', 'stock'])
# Adding unique constraint on 'ProductStockUnit', fields ['product', 'pending', 'stock']
db.create_unique('catalog_productstockunit', ['product_id', 'pending', 'stock'])
开发者ID:alexgula,项目名称:django_sites,代码行数:7,代码来源:0006_auto__del_unique_productstockunit_product_stock__add_unique_productsto.py
示例14: forwards
def forwards(self, orm):
# Removing unique constraint on 'Child', fields ['child']
db.delete_unique("profile_child", ["child_id"])
# Adding field 'UserProfile.scribblar_id'
db.add_column(
"profile_userprofile",
"scribblar_id",
self.gf("django.db.models.fields.CharField")(max_length=30, null=True, blank=True),
keep_default=False,
)
# Adding field 'Child.active'
db.add_column(
"profile_child",
"active",
self.gf("django.db.models.fields.BooleanField")(default=False),
keep_default=False,
)
# Adding field 'Child.key'
db.add_column(
"profile_child",
"key",
self.gf("django.db.models.fields.CharField")(default=None, max_length=30, null=True, blank=True),
keep_default=False,
)
开发者ID:alonslotky,项目名称:universal_tutors,代码行数:27,代码来源:0006_auto__add_field_userprofile_scribblar_id__add_field_child_active__add_.py
示例15: backwards
def backwards(self, orm):
# Deleting model 'Vote'
db.delete_table('votes')
# Deleting unique_together for [user, content_type, object_id] on Vote.
db.delete_unique('votes', ['user_id', 'content_type_id', 'object_id'])