def forwards(self, orm):
        # Removing unique constraint on 'AnswerSheet', fields ['user']
        db.delete_unique('survey_answersheet', ['user_id'])


        # Changing field 'AnswerSheet.user'
        db.alter_column('survey_answersheet', 'user_id', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['auth.User']))
示例#2
0
    def backwards(self, orm):
        
        # Deleting model 'SurveyGroup'
        db.delete_table('django_surveys_surveygroup')

        # Deleting model 'Question'
        db.delete_table('django_surveys_question')

        # Removing unique constraint on 'Question', fields ['survey_group', 'order']
        db.delete_unique('django_surveys_question', ['survey_group_id', 'order'])

        # Deleting model 'Survey'
        db.delete_table('django_surveys_survey')

        # Deleting model 'Answer'
        db.delete_table('django_surveys_answer')

        # Removing unique constraint on 'Answer', fields ['survey', 'question']
        db.delete_unique('django_surveys_answer', ['survey_id', 'question_id'])

        # Deleting model 'TextAnswer'
        db.delete_table('django_surveys_textanswer')

        # Deleting model 'IntegerAnswer'
        db.delete_table('django_surveys_integeranswer')

        # Deleting model 'BooleanAnswer'
        db.delete_table('django_surveys_booleananswer')

        # Deleting model 'CharAnswer'
        db.delete_table('django_surveys_charanswer')
示例#3
0
    def backwards(self, orm):
        
        # Removing unique constraint on 'ContactRole', fields ['contact', 'layer', 'role']
        db.delete_unique('maps_contactrole', ['contact_id', 'layer_id', 'role_id'])

        # Deleting model 'Contact'
        db.delete_table('maps_contact')

        # Deleting model 'Layer'
        db.delete_table('maps_layer')

        # Deleting model 'Map'
        db.delete_table('maps_map')

        # Deleting model 'MapLayer'
        db.delete_table('maps_maplayer')

        # Deleting model 'Role'
        db.delete_table('maps_role')

        # Removing M2M table for field permissions on 'Role'
        db.delete_table('maps_role_permissions')

        # Deleting model 'ContactRole'
        db.delete_table('maps_contactrole')
    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')
    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)
示例#6
0
    def backwards(self, orm):
        
        # Removing unique constraint on 'GameSetting', fields ['game', 'widget']
        db.delete_unique('challenge_mgr_gamesetting', ['game_id', 'widget'])

        # Removing unique constraint on 'PageSetting', fields ['page', 'game', 'widget']
        db.delete_unique('challenge_mgr_pagesetting', ['page_id', 'game_id', 'widget'])

        # Deleting model 'ChallengeSetting'
        db.delete_table('challenge_mgr_challengesetting')

        # Deleting model 'UploadImage'
        db.delete_table('challenge_mgr_uploadimage')

        # Deleting model 'Sponsor'
        db.delete_table('challenge_mgr_sponsor')

        # Deleting model 'RoundSetting'
        db.delete_table('challenge_mgr_roundsetting')

        # Deleting model 'PageInfo'
        db.delete_table('challenge_mgr_pageinfo')

        # Deleting model 'PageSetting'
        db.delete_table('challenge_mgr_pagesetting')

        # Deleting model 'GameInfo'
        db.delete_table('challenge_mgr_gameinfo')

        # Deleting model 'GameSetting'
        db.delete_table('challenge_mgr_gamesetting')
    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']))
    def forwards(self, orm):
        
        # Removing unique constraint on 'Feature', fields ['category', 'name']
        db.delete_unique('categories_feature', ['category_id', 'name'])

        # Removing unique constraint on 'Feature', fields ['category', 'sort_order', 'group']
        db.delete_unique('categories_feature', ['category_id', 'sort_order', 'group_id'])
    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')
示例#10
0
    def backwards(self, orm):
        
        # Removing unique constraint on 'Lab', fields ['num', 'semester']
        db.delete_unique('tutorials_lab', ['num', 'semester'])

        # Removing unique constraint on 'Quiz', fields ['semester', 'num']
        db.delete_unique('tutorials_quiz', ['semester', 'num'])

        # Deleting model 'Quiz'
        db.delete_table('tutorials_quiz')

        # Deleting model 'Lab'
        db.delete_table('tutorials_lab')

        # Deleting model 'PublicVideo'
        db.delete_table('tutorials_publicvideo')

        # Deleting model 'TopicAssignment'
        db.delete_table('tutorials_topicassignment')

        # Deleting model 'Comment'
        db.delete_table('tutorials_comment')

        # Deleting model 'LinkedWebPage'
        db.delete_table('tutorials_linkedwebpage')

        # Deleting model 'UserProfile'
        db.delete_table('tutorials_userprofile')

        # Removing M2M table for field favorites on 'UserProfile'
        db.delete_table('tutorials_userprofile_favorites')
    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')
示例#12
0
    def backwards(self, orm):
        # Removing unique constraint on 'ProjectStep', fields ['name', 'project']
        db.delete_unique(u'inhouse_projectstep', ['name', 'project_id'])

        # Removing unique constraint on 'Day', fields ['user', 'date']
        db.delete_unique(u'inhouse_day', ['user_id', 'date'])

        # Deleting model 'AddressGroup'
        db.delete_table(u'inhouse_addressgroup')

        # Deleting model 'Address'
        db.delete_table(u'inhouse_address')

        # Deleting model 'BankAccount'
        db.delete_table(u'inhouse_bankaccount')

        # Deleting model 'Booking'
        db.delete_table(u'inhouse_booking')

        # Deleting model 'Communication'
        db.delete_table(u'inhouse_communication')

        # Deleting model 'Company'
        db.delete_table(u'inhouse_company')

        # Removing M2M table for field bank_accounts on 'Company'
        db.delete_table('inhouse_company_bank_accounts')

        # Deleting model 'Day'
        db.delete_table(u'inhouse_day')

        # Deleting model 'Department'
        db.delete_table(u'inhouse_department')

        # Deleting model 'Invoice'
        db.delete_table(u'inhouse_invoice')

        # Deleting model 'Person'
        db.delete_table(u'inhouse_person')

        # Removing M2M table for field departments on 'Person'
        db.delete_table('inhouse_person_departments')

        # Deleting model 'Project'
        db.delete_table(u'inhouse_project')

        # Removing M2M table for field members on 'Project'
        db.delete_table('inhouse_project_members')

        # Deleting model 'ProjectStep'
        db.delete_table(u'inhouse_projectstep')

        # Deleting model 'ProjectStepTemplate'
        db.delete_table(u'inhouse_projectsteptemplate')

        # Deleting model 'ProjectType'
        db.delete_table(u'inhouse_projecttype')

        # Deleting model 'Timer'
        db.delete_table(u'inhouse_timer')
    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')
示例#14
0
 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'])
    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')
示例#16
0
    def backwards(self, orm):
        # Removing unique constraint on 'Tag', fields ['name', 'company']
        db.delete_unique(u'mypartners_tag', ['name', 'company_id'])

        # Deleting model 'Contact'
        db.delete_table(u'mypartners_contact')

        # Removing M2M table for field tags on 'Contact'
        db.delete_table(db.shorten_name(u'mypartners_contact_tags'))

        # Deleting model 'Partner'
        db.delete_table(u'mypartners_partner')

        # Removing M2M table for field tags on 'Partner'
        db.delete_table(db.shorten_name(u'mypartners_partner_tags'))

        # Deleting model 'PartnerLibrary'
        db.delete_table(u'mypartners_partnerlibrary')

        # Deleting model 'ContactRecord'
        db.delete_table(u'mypartners_contactrecord')

        # Removing M2M table for field tags on 'ContactRecord'
        db.delete_table(db.shorten_name(u'mypartners_contactrecord_tags'))

        # Deleting model 'PRMAttachment'
        db.delete_table(u'mypartners_prmattachment')

        # Deleting model 'ContactLogEntry'
        db.delete_table(u'mypartners_contactlogentry')

        # Deleting model 'Tag'
        db.delete_table(u'mypartners_tag')
    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,
        )
示例#18
0
    def backwards(self, orm):
        
        # Removing unique constraint on 'Category', fields ['parent', 'name']
        db.delete_unique('categories_category', ['parent_id', 'name'])

        # Deleting model 'Category'
        db.delete_table('categories_category')
    def forwards(self, orm):
        
        # Removing unique constraint on 'ProjectApplication', fields ['precursor_application']
        db.delete_unique('im_projectapplication', ['precursor_application_id'])

        # Changing field 'ApprovalTerms.date'
        db.alter_column('im_approvalterms', 'date', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True))

        # Changing field 'Project.creation_date'
        db.alter_column('im_project', 'creation_date', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True))

        # Changing field 'ProjectMembership.request_date'
        db.alter_column('im_projectmembership', 'request_date', self.gf('django.db.models.fields.DateField')(auto_now_add=True))

        # Changing field 'ProjectMembershipHistory.date'
        db.alter_column('im_projectmembershiphistory', 'date', self.gf('django.db.models.fields.DateField')(auto_now_add=True))

        # Changing field 'EmailChange.requested_at'
        db.alter_column('im_emailchange', 'requested_at', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True))

        # Adding field 'ProjectApplication.response_date'
        db.add_column('im_projectapplication', 'response_date', self.gf('django.db.models.fields.DateTimeField')(null=True, blank=True), keep_default=False)

        # Changing field 'ProjectApplication.issue_date'
        db.alter_column('im_projectapplication', 'issue_date', self.gf('django.db.models.fields.DateTimeField')(auto_now_add=True))

        # Changing field 'ProjectApplication.precursor_application'
        db.alter_column('im_projectapplication', 'precursor_application_id', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['im.ProjectApplication'], null=True))
    def forwards(self, orm):
        
        # Removing unique constraint on 'TaskBlacklist', fields ['user', 'task']
        db.delete_unique('tasks_taskblacklist', ['user_id', 'task_id'])

        # Deleting model 'TaskBlacklist'
        db.delete_table('tasks_taskblacklist')
    def backwards(self, orm):
        
        # Removing unique constraint on 'PostShell', fields ['slug']
        db.delete_unique('collins_postshell', ['slug'])

        # Adding field 'Blog.custom_domain'
        db.add_column('collins_blog', 'custom_domain', self.gf('django.db.models.fields.related.OneToOneField')(related_name='Primary Blog', unique=True, null=True, to=orm['sites.Site'], blank=True), keep_default=False)
    def backwards(self, orm):

        # Removing unique constraint on 'ProjectOptions', fields ['project', 'key', 'value']
        db.delete_unique('sentry_projectoptions', ['project_id', 'key', 'value'])

        # Deleting model 'ProjectOptions'
        db.delete_table('sentry_projectoptions')
    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))
    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))
    def backwards(self, orm):

        # Removing unique constraint on 'FilterValue', fields ['key', 'value']
        db.delete_unique('sentry_filtervalue', ['key', 'value'])

        # Deleting model 'FilterValue'
        db.delete_table('sentry_filtervalue')
示例#26
0
    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')
示例#27
0
    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')
    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']))
    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'])
示例#30
0
    def backwards(self, orm):
        # Removing unique constraint on 'Certificate', fields ['common_name', 'parent']
        db.delete_unique('pki_certificate', ['common_name', 'parent_id'])

        # Removing unique constraint on 'Certificate', fields ['name', 'parent']
        db.delete_unique('pki_certificate', ['name', 'parent_id'])

        # Deleting model 'CertificateAuthority'
        db.delete_table('pki_certificateauthority')

        # Deleting model 'Certificate'
        db.delete_table('pki_certificate')

        # Deleting model 'PkiChangelog'
        db.delete_table('pki_changelog')

        # Deleting model 'x509Extension'
        db.delete_table('pki_x509extension')

        # Removing M2M table for field key_usage on 'x509Extension'
        db.delete_table('pki_x509extension_key_usage')

        # Removing M2M table for field extended_key_usage on 'x509Extension'
        db.delete_table('pki_x509extension_extended_key_usage')

        # Deleting model 'KeyUsage'
        db.delete_table('pki_keyusage')

        # Deleting model 'ExtendedKeyUsage'
        db.delete_table('pki_extendedkeyusage')
 def backwards(self, orm):
     # Removing unique constraint on 'Clinic', fields ['code']
     db.delete_unique(u'clinics_clinic', ['code'])
 def backwards(self, orm):
     # Removing unique constraint on 'Event', fields ['uid']
     db.delete_unique(u'timetables_event', ['uid'])
示例#33
0
 def backwards(self, orm):
     # Removing unique constraint on 'TaskFinishedStatus', fields ['user', 'task']
     db.delete_unique(u'task_system_taskfinishedstatus',
                      ['user_id', 'task_id'])
示例#34
0
    def backwards(self, orm):
        # Removing unique constraint on 'Network', fields ['network']
        db.delete_unique(u'namer_network', ['network'])

        # Deleting field 'ComputerGroup.key'
        db.delete_column(u'namer_computergroup', 'key')
示例#35
0
 def forwards(self, orm):
     # Removing unique constraint on 'ModelBase', fields ['slug']
     db.delete_unique('jmbo_modelbase', ['slug'])
    def forwards(self, orm):
        # Removing unique constraint on 'Customer', fields ['contact_mail', 'contact_name', 'company_name']
        db.delete_unique(u'customers_customer', ['contact_mail', 'contact_name', 'company_name'])

        # Adding unique constraint on 'Customer', fields ['contact_mail']
        db.create_unique(u'customers_customer', ['contact_mail'])
示例#37
0
 def backwards(self, orm):
     # Removing unique constraint on 'Signature', fields ['system', 'sigid']
     db.delete_unique('Map_signature', ['system_id', 'sigid'])
    def forwards(self, orm):
        # Removing unique constraint on 'Computer', fields ['name']
        db.delete_unique('server_computer', ['name'])

        # Adding unique constraint on 'Computer', fields ['uuid']
        db.create_unique('server_computer', ['uuid'])
示例#39
0
    def backwards(self, orm):
        
        # Removing unique constraint on 'RelayLog', fields ['site', 'seqn']
        db.delete_unique('core_relaylog', ['site_id', 'seqn'])

        # Adding unique constraint on 'AuthenticationToken', fields ['auth_device', 'token_value']
        db.create_unique('core_authenticationtoken', ['auth_device', 'token_value'])

        # Removing unique constraint on 'AuthenticationToken', fields ['auth_device', 'site', 'token_value', 'seqn']
        db.delete_unique('core_authenticationtoken', ['auth_device', 'site_id', 'token_value', 'seqn'])

        # Removing unique constraint on 'DrinkingSession', fields ['site', 'seqn']
        db.delete_unique('core_drinkingsession', ['site_id', 'seqn'])

        # Removing unique constraint on 'ThermoSensor', fields ['site', 'seqn']
        db.delete_unique('core_thermosensor', ['site_id', 'seqn'])

        # Removing unique constraint on 'ThermoSummaryLog', fields ['site', 'seqn']
        db.delete_unique('core_thermosummarylog', ['site_id', 'seqn'])

        # Removing unique constraint on 'Keg', fields ['site', 'seqn']
        db.delete_unique('core_keg', ['site_id', 'seqn'])

        # Removing unique constraint on 'Drink', fields ['site', 'seqn']
        db.delete_unique('core_drink', ['site_id', 'seqn'])

        # Removing unique constraint on 'Thermolog', fields ['site', 'seqn']
        db.delete_unique('core_thermolog', ['site_id', 'seqn'])
示例#40
0
 def backwards(self, orm):
     db.delete_unique(u'badgify_award', ['user_id', 'badge_id'])
     db.delete_table(u'badgify_badge')
     db.delete_table(u'badgify_award')
示例#41
0
    def backwards(self, orm):
        # Removing unique constraint on 'Product', fields ['upc']
        db.delete_unique('product_product', ['upc'])

        # Deleting field 'Product.rush'
        db.delete_column('product_product', 'rush')
    def backwards(self, orm):

        # Removing unique constraint on 'Project', fields ['name']
        db.delete_unique('ideabuilder_project', ['name'])
示例#43
0
 def backwards(self, orm):
     db.delete_unique(u'containers_containerbox',
                      ['site_id', 'channel_long_slug', 'slug'])
    def backwards(self, orm):
        # Removing unique constraint on 'Suggestion', fields ['url']
        db.delete_unique('suggestions_suggestion', ['url'])

        # Removing unique constraint on 'Suggestion', fields ['name']
        db.delete_unique('suggestions_suggestion', ['name'])
示例#45
0
    def backwards(self, orm):
        # Removing unique constraint on 'Push', fields ['app', 'uuid']
        db.delete_unique(u'api_push', ['app_id', 'uuid'])

        # Deleting model 'Push'
        db.delete_table(u'api_push')
 def forwards(self, orm):
     
     # Removing unique constraint on 'VideoUrl', fields ['video', 'original']
     db.delete_unique('videos_videourl', ['video_id', 'original'])
示例#47
0
    def backwards(self, orm):

        # Removing unique constraint on 'Package', fields ['repo_url']
        db.delete_unique('package_package', ['repo_url'])
示例#48
0
    def backwards(self, orm):
        # Removing unique constraint on 'ExternalApp', fields ['ip_address', 'slug']
        db.delete_unique('externalapps_externalapp', ['ip_address', 'slug'])

        # Deleting model 'ExternalApp'
        db.delete_table('externalapps_externalapp')
    def forwards(self, orm):
        # Removing unique constraint on 'Document', fields ['collection', 'base_dir']
        db.delete_unique(u'openn_document', ['collection', 'base_dir'])

        # Adding unique constraint on 'Document', fields ['openn_collection', 'base_dir']
        db.create_unique(u'openn_document', ['openn_collection_id', 'base_dir'])
    def backwards(self, orm):

        # Removing unique constraint on 'CandidateJuryAllocation', fields ['step', 'candidate']
        db.delete_unique('competitions_candidatejuryallocation',
                         ['step_id', 'candidate_id'])
 def forwards(self, orm):
     rename_tables_old_to_new(db)
     # Removing unique constraint on 'Article', fields ['content']
     db.delete_unique(u'aldryn_newsblog_article', ['content_id'])
示例#52
0
    def backwards(self, orm):
        # Removing unique constraint on 'EventMapping', fields ['project', 'event_id']
        db.delete_unique('sentry_eventmapping', ['project_id', 'event_id'])

        # Deleting model 'EventMapping'
        db.delete_table('sentry_eventmapping')
示例#53
0
    def backwards(self, orm):
        # Removing unique constraint on 'ActivityLog', fields ['user', 'when']
        db.delete_unique('panda_activitylog', ['user_id', 'when'])

        # Deleting model 'ActivityLog'
        db.delete_table('panda_activitylog')
    def backwards(self, orm):
        # Removing unique constraint on 'Model', fields ['model_code']
        db.delete_unique(u'sp_model', ['model_code'])

        # Deleting model 'CriterionDetail'
        db.delete_table(u'sp_criteriondetail')

        # Deleting model 'ModelPhone'
        db.delete_table(u'sp_modelphone')

        # Deleting model 'ModelCriterionDetail'
        db.delete_table(u'sp_modelcriteriondetail')

        # Deleting model 'Criterion'
        db.delete_table(u'sp_criterion')

        # Deleting model 'CriterionCategory'
        db.delete_table(u'sp_criterioncategory')

        # Deleting field 'Model.dni'
        db.delete_column(u'sp_model', 'dni')

        # Deleting field 'Model.status'
        db.delete_column(u'sp_model', 'status')

        # Deleting field 'Model.name'
        db.delete_column(u'sp_model', 'name')

        # Deleting field 'Model.last_name'
        db.delete_column(u'sp_model', 'last_name')

        # Deleting field 'Model.alias'
        db.delete_column(u'sp_model', 'alias')

        # Deleting field 'Model.address'
        db.delete_column(u'sp_model', 'address')

        # Deleting field 'Model.reference'
        db.delete_column(u'sp_model', 'reference')

        # Deleting field 'Model.email'
        db.delete_column(u'sp_model', 'email')

        # Deleting field 'Model.birth'
        db.delete_column(u'sp_model', 'birth')

        # Deleting field 'Model.birth_place'
        db.delete_column(u'sp_model', 'birth_place')

        # Deleting field 'Model.height'
        db.delete_column(u'sp_model', 'height')

        # Deleting field 'Model.weight'
        db.delete_column(u'sp_model', 'weight')

        # Deleting field 'Model.size_shoe'
        db.delete_column(u'sp_model', 'size_shoe')

        # Deleting field 'Model.experience'
        db.delete_column(u'sp_model', 'experience')

        # Deleting field 'Model.last_visit'
        db.delete_column(u'sp_model', 'last_visit')
示例#55
0
 def backwards(self, orm):
     # Removing unique constraint on 'Job', fields ['job_template', 'title']
     db.delete_unique('job_runner_job', ['job_template_id', 'title'])
    def backwards(self, orm):
        # Removing unique constraint on 'Document', fields ['collection', 'base_dir']
        db.delete_unique(u'openn_document', ['collection', 'base_dir'])

        # Adding unique constraint on 'Document', fields ['collection', 'call_number']
        db.create_unique(u'openn_document', ['collection', 'call_number'])
示例#57
0
 def backwards(self, orm):
     # Removing unique constraint on 'BrandProposalReview', fields ['proposal_cd', 'user']
     db.delete_unique(u'brand_proposal_review',
                      [u'PROPOSAL_CD', u'USER_ID'])
 def backwards(self, orm):
     # Removing unique constraint on 'Visits', fields ['contract', 'date_end']
     db.delete_unique(u'contract_visits', ['contract_id', 'date_end'])
    def backwards(self, orm):
        # Removing unique constraint on 'IncludedPage', fields ['source', 'included_page']
        db.delete_unique(u'links_includedpage', ['source_id', 'included_page_id'])

        # Deleting model 'IncludedPage'
        db.delete_table(u'links_includedpage')
示例#60
0
    def backwards(self, orm):
        # Removing unique constraint on 'Party', fields ['knesset', 'name']
        db.delete_unique('mks_party', ['knesset_id', 'name'])

        # Deleting field 'Party.knesset'
        db.delete_column('mks_party', 'knesset_id')