def backwards(self, orm): # Deleting model 'Transaction' db.delete_table('statement_parse_transaction') # Deleting model 'Account' db.delete_table('statement_parse_account')
def backwards(self, orm): # Deleting model 'GoogleTracker' db.delete_table('customs_googletracker') # Deleting model 'GoogleQuery' db.delete_table('customs_googlequery')
def forwards(self, orm): # Deleting model 'NodeProductReports' db.delete_table('ilsgateway_nodeproductreports') # Adding model 'NodeProductReport' db.create_table('ilsgateway_nodeproductreport', ( ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('product', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['ilsgateway.Product'])), ('node', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['ilsgateway.Node'])), ('report_type', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['ilsgateway.ProductReportType'])), ('quantity', self.gf('django.db.models.fields.IntegerField')()), )) db.send_create_signal('ilsgateway', ['NodeProductReport']) # Removing M2M table for field child_nodes on 'Node' db.delete_table('ilsgateway_node_child_nodes') # Adding M2M table for field child_node on 'Node' db.create_table('ilsgateway_node_child_node', ( ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)), ('from_node', models.ForeignKey(orm['ilsgateway.node'], null=False)), ('to_node', models.ForeignKey(orm['ilsgateway.node'], null=False)) )) db.create_unique('ilsgateway_node_child_node', ['from_node_id', 'to_node_id'])
def forwards(self, orm): # Deleting model 'AJeansSize' db.delete_table('core_ajeanssize') # Deleting model 'AColor' db.delete_table('core_acolor')
def backwards(self, orm): # Deleting model 'ExerciseWidget' db.delete_table('askbot_exercisewidget') # Deleting model 'AskWidget' db.delete_table('askbot_askwidget')
def forwards(self, orm): # Deleting field 'File.public' db.delete_column('cmsplugin_file', 'public_id') # Deleting model 'filepublic' db.delete_table('cmsplugin_filepublic')
def forwards(self, orm): # Deleting model 'Encuesta' db.delete_table('Encuesta_encuesta') # Deleting model 'EncuestaData' db.delete_table('Encuesta_encuestadata')
def backwards(self, orm): # Deleting model 'Project' db.delete_table('cms_project') # Removing M2M table for field members on 'Project' db.delete_table('cms_project_members')
def forwards(self, orm): # Deleting field 'SavedSearch.openid_user' db.delete_column('localtv_savedsearch', 'openid_user_id') # Deleting field 'OpenIdUser.status' db.delete_column('localtv_openiduser', 'status') # Deleting field 'Watch.openid_user' db.delete_column('localtv_watch', 'openid_user_id') # Deleting field 'OpenIdUser.superuser' db.delete_column('localtv_openiduser', 'superuser') # Deleting field 'OpenIdUser.nickname' db.delete_column('localtv_openiduser', 'nickname') # Deleting field 'OpenIdUser.email' db.delete_column('localtv_openiduser', 'email') # Deleting field 'Feed.openid_user' db.delete_column('localtv_feed', 'openid_user_id') # Deleting field 'Video.openid_user' db.delete_column('localtv_video', 'openid_user_id') # Dropping ManyToManyField 'SiteLocation.admins' db.delete_table('localtv_sitelocation_admins') # Changing field 'OpenIdUser.user' # (to signature: django.db.models.fields.related.OneToOneField(to=orm['auth.User'], unique=True)) db.alter_column('localtv_openiduser', 'user_id', orm['localtv.openiduser:user'])
def backwards(self, orm): # Deleting model 'IncentiveFee' db.delete_table('hedgefunds_incentivefee') # Changing field 'StudentTeam.rate' db.alter_column('hedgefunds_studentteam', 'rate', self.gf('django.db.models.fields.IntegerField')())
def backwards(self, orm): # Deleting field 'ExampleModel.fk_field' db.delete_column('xml_examplemodel', 'fk_field_id') # Removing M2M table for field mm_field on 'ExampleModel' db.delete_table('xml_examplemodel_mm_field')
def backwards(self, orm): # Adding field 'Project.private' db.add_column('gitlog_project', 'private', self.gf('django.db.models.fields.BooleanField')(default=False), keep_default=False) # Adding field 'Project.source' db.add_column('gitlog_project', 'source', self.gf('django.db.models.fields.BooleanField')(default=False), keep_default=False) # Deleting field 'Project.public' db.delete_column('gitlog_project', 'public') # Deleting field 'Project.url' db.delete_column('gitlog_project', 'url') # Deleting field 'Project.description' db.delete_column('gitlog_project', 'description') # Removing M2M table for field writable on 'Project' db.delete_table('gitlog_project_writable') # Removing M2M table for field readonly on 'Project' db.delete_table('gitlog_project_readonly') # User chose to not deal with backwards NULL issues for 'Project.owner' raise RuntimeError("Cannot reverse this migration. 'Project.owner' and its values cannot be restored.")
def backwards(self, orm): # Removing M2M table for field supervisors on 'SupportGroup' db.delete_table('live_support_supportgroup_supervisors') # Changing field 'Chat.hash_key' db.alter_column('live_support_chat', 'hash_key', self.gf('django.db.models.fields.CharField')(default='', max_length=64, unique=True))
def backwards(self, orm): # Adding model 'RssChannel' db.create_table('subscriptions_rsschannel', ( ('recipient', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['auth.User'], null=True)), ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), )) db.send_create_signal('subscriptions', ['RssChannel']) # Adding model 'SearchSubscription' db.create_table('subscriptions_searchsubscription', ( ('query', self.gf('django.db.models.fields.TextField')()), ('subscription_ptr', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['subscriptions.Subscription'], unique=True, primary_key=True)), )) db.send_create_signal('subscriptions', ['SearchSubscription']) # Adding model 'EmailChannel' db.create_table('subscriptions_emailchannel', ( ('recipient', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['auth.User'], null=True)), ('email', self.gf('django.db.models.fields.CharField')(max_length=256)), ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), )) db.send_create_signal('subscriptions', ['EmailChannel']) # Adding model 'SmsChannel' db.create_table('subscriptions_smschannel', ( ('recipient', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['auth.User'], null=True)), ('number', self.gf('django.db.models.fields.CharField')(max_length=32)), ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('carrier', self.gf('django.db.models.fields.CharField')(max_length=32)), )) db.send_create_signal('subscriptions', ['SmsChannel']) # Deleting model 'SubscriptionDispatchRecord' db.delete_table('subscriptions_subscriptiondispatchrecord')
def backwards(self, orm): # Deleting model 'ActivityGroup' db.delete_table('timepiece_activitygroup') # Removing M2M table for field activities on 'ActivityGroup' db.delete_table('timepiece_activitygroup_activities')
def backwards(self, orm): # Deleting model 'Prediction' db.delete_table('contest_prediction') # Deleting model 'Week' db.delete_table('contest_week')
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')
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')
def backwards(self, orm): # Deleting model 'Decision' db.delete_table("publicweb_decision") # Deleting model 'Concern' db.delete_table("publicweb_concern")
def forwards(self, orm): # Adding field 'Project.programme' db.add_column('projects_project', 'programme', self.gf('django.db.models.fields.related.ForeignKey')(default=1, to=orm['programmes.Programme']), keep_default=False) # Removing M2M table for field programme on 'Project' db.delete_table('projects_project_programme')
def backwards(self, orm): # Deleting model 'BadgeSubmissionAnswer' db.delete_table('badges_badgesubmissionanswer') # Deleting model 'BadgeSubmission' db.delete_table('badges_badgesubmission')
def backwards(self, orm): # Deleting model 'Category' db.delete_table('dashboard_category') # Deleting field 'JenkinsFailuresMetric.category' db.delete_column('dashboard_jenkinsfailuresmetric', 'category_id') # Deleting field 'JenkinsFailuresMetric.position' db.delete_column('dashboard_jenkinsfailuresmetric', 'position') # Deleting field 'GithubItemCountMetric.category' db.delete_column('dashboard_githubitemcountmetric', 'category_id') # Deleting field 'GithubItemCountMetric.position' db.delete_column('dashboard_githubitemcountmetric', 'position') # Deleting field 'RSSFeedMetric.category' db.delete_column('dashboard_rssfeedmetric', 'category_id') # Deleting field 'RSSFeedMetric.position' db.delete_column('dashboard_rssfeedmetric', 'position') # Deleting field 'TracTicketMetric.category' db.delete_column('dashboard_tracticketmetric', 'category_id') # Deleting field 'TracTicketMetric.position' db.delete_column('dashboard_tracticketmetric', 'position')
def backwards(self, orm): # Deleting model 'Keyword' db.delete_table('generic_keyword') # Deleting model 'AssignedKeyword' db.delete_table('generic_assignedkeyword')
def backwards(self, orm): # Deleting model 'Shot' db.delete_table('h1ds_summary_shot') # Deleting model 'FloatAttributeInstance' db.delete_table('h1ds_summary_floatattributeinstance')
def backwards(self, orm): # Deleting model 'Midway' db.delete_table('forms_midway') # Deleting model 'MidwayAssignment' db.delete_table('forms_midwayassignment')
def backwards(self, orm): # Deleting model 'Class' db.delete_table('pages_class') # Removing M2M table for field categories on 'Class' db.delete_table('pages_class_categories')
def backwards(self, orm): # Deleting field 'Scenario.input_parameter_wea' db.delete_column('scenarios_scenario', 'input_parameter_wea') # Removing M2M table for field input_wea on 'Scenario' db.delete_table('scenarios_scenario_input_wea')
def forwards(self, orm): # Deleting model 'SkipQuestion' db.delete_table(u'questionnaire_skipquestion') # Adding model 'MultipleResponseAnswer' db.create_table(u'questionnaire_multipleresponseanswer', ( (u'answer_ptr', self.gf('django.db.models.fields.related.OneToOneField')(to=orm['questionnaire.Answer'], unique=True, primary_key=True)), )) db.send_create_signal('questionnaire', ['MultipleResponseAnswer']) # Adding M2M table for field response on 'MultipleResponseAnswer' db.create_table(u'questionnaire_multipleresponseanswer_response', ( ('id', models.AutoField(verbose_name='ID', primary_key=True, auto_created=True)), ('multipleresponseanswer', models.ForeignKey(orm['questionnaire.multipleresponseanswer'], null=False)), ('questionoption', models.ForeignKey(orm['questionnaire.questionoption'], null=False)) )) db.create_unique(u'questionnaire_multipleresponseanswer_response', ['multipleresponseanswer_id', 'questionoption_id']) # Adding model 'SkipRule' db.create_table(u'questionnaire_skiprule', ( (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('created', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now, blank=True)), ('modified', self.gf('django.db.models.fields.DateTimeField')(default=datetime.datetime.now, blank=True)), ('root_question', self.gf('django.db.models.fields.related.ForeignKey')(related_name='root_skip_rules', to=orm['questionnaire.Question'])), ('response', self.gf('django.db.models.fields.related.ForeignKey')(related_name='skip_rules', to=orm['questionnaire.QuestionOption'])), ('skip_question', self.gf('django.db.models.fields.related.ForeignKey')(blank=True, related_name='skip_rules', null=True, to=orm['questionnaire.Question'])), ('skip_subsection', self.gf('django.db.models.fields.related.ForeignKey')(to=orm['questionnaire.SubSection'], null=True, blank=True)), ('subsection', self.gf('django.db.models.fields.related.ForeignKey')(related_name='skip_rules', to=orm['questionnaire.SubSection'])), )) db.send_create_signal('questionnaire', ['SkipRule'])
def backwards(self, orm): # Deleting model 'Location' db.delete_table('ddsc_core_location') # Deleting model 'Timeseries' db.delete_table('ddsc_core_timeseries')
def forwards(self, orm): # Deleting model 'Reference' db.delete_table('datasets_reference') # Removing M2M table for field reference on 'Intervention' db.delete_table('datasets_intervention_reference')
def forwards(self, orm): # Deleting model 'OfferRequest' db.delete_table(u'offers_offerrequest')
def forwards(self, orm): # Deleting model 'Basket' db.delete_table('baskets_basket')
def backwards(self, orm): # Deleting model 'Registration' db.delete_table(u'publicmeeting_registration')
def backwards(self, orm): # Adding model 'Wishlist' db.create_table('shop_wishlist', ( ('hashkey', self.gf('django.db.models.fields.CharField')( max_length=200, null=True, blank=True)), ('address', self.gf('django.db.models.fields.related.ForeignKey')( to=orm['shop.Address'])), ('owner', self.gf('django.db.models.fields.related.ForeignKey')( to=orm['shop.Shopper'])), ('date_created', self.gf('django.db.models.fields.DateTimeField')( default=datetime.datetime(2013, 10, 16, 0, 0))), ('views', self.gf('django.db.models.fields.IntegerField')( default='0', null=True, blank=True)), ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('times_purchased', self.gf('django.db.models.fields.IntegerField')( default='0', null=True, blank=True)), )) db.send_create_signal('shop', ['Wishlist']) # Adding M2M table for field wishlist_items on 'Wishlist' m2m_table_name = db.shorten_name('shop_wishlist_wishlist_items') db.create_table( m2m_table_name, (('id', models.AutoField( verbose_name='ID', primary_key=True, auto_created=True)), ('wishlist', models.ForeignKey(orm['shop.wishlist'], null=False)), ('basketitem', models.ForeignKey(orm['shop.basketitem'], null=False)))) db.create_unique(m2m_table_name, ['wishlist_id', 'basketitem_id']) # Deleting model 'Deal' db.delete_table('shop_deal') # Removing M2M table for field items on 'Deal' db.delete_table(db.shorten_name('shop_deal_items')) # Changing field 'UniqueProduct.is_sale_price' db.alter_column('shop_uniqueproduct', 'is_sale_price', self.gf('django.db.models.fields.BooleanField')()) # Changing field 'Address.country' db.alter_column( 'shop_address', 'country', self.gf('django.db.models.fields.CharField')(default=1, max_length=200)) # Changing field 'Order.reminder_email_sent' db.alter_column('shop_order', 'reminder_email_sent', self.gf('django.db.models.fields.BooleanField')()) # Adding field 'Product.extra_info' db.add_column('shop_product', 'extra_info', self.gf('django.db.models.fields.TextField')(null=True, blank=True), keep_default=False) # Adding field 'Product.extra_info_it' db.add_column('shop_product', 'extra_info_it', self.gf('django.db.models.fields.TextField')(null=True, blank=True), keep_default=False) # Adding field 'Product.extra_info_en' db.add_column('shop_product', 'extra_info_en', self.gf('django.db.models.fields.TextField')(null=True, blank=True), keep_default=False) # Adding field 'Product.extra_info_de' db.add_column('shop_product', 'extra_info_de', self.gf('django.db.models.fields.TextField')(null=True, blank=True), keep_default=False)
def backwards(self, orm): # Deleting model 'Contactus' db.delete_table(u'main_contactus')
def backwards(self, orm): # Deleting model 'Notification' db.delete_table('notifications_notification')
def backwards(self, orm): # Deleting model 'Dhis2_Reports_Submissions_Log' db.delete_table(u'dhis2_reports_submissions_log')
def backwards(self, orm): # Deleting model 'UserProfile' db.delete_table(u'comptes_userprofile') # Deleting model 'Restaurateur' db.delete_table(u'comptes_restaurateur')
def backwards(self, orm): # Deleting model 'Category' db.delete_table('captcha_category')
def backwards(self, orm): # Deleting model 'Movie' db.delete_table(u'movie_movie') # Removing M2M table for field categories on 'Movie' db.delete_table(db.shorten_name(u'movie_movie_categories')) # Removing M2M table for field actors on 'Movie' db.delete_table(db.shorten_name(u'movie_movie_actors')) # Deleting model 'MovieOld' db.delete_table(u'movie_movieold') # Deleting model 'MovieActor' db.delete_table(u'movie_movieactor') # Deleting model 'MovieCategory' db.delete_table(u'movie_moviecategory') # Deleting model 'MovieTrailer' db.delete_table(u'movie_movietrailer') # Deleting model 'MovieStockType' db.delete_table(u'movie_moviestocktype') # Deleting model 'MovieStock' db.delete_table(u'movie_moviestock') # Deleting model 'MovieRented' db.delete_table(u'movie_movierented')
def backwards(self, orm): # Deleting model 'Discipline' db.delete_table(u'dariah_static_data_discipline')
def backwards(self, orm): # Deleting model 'property' db.delete_table(u'polls_property')
def backwards(self, orm): # Deleting model 'UserSearch' db.delete_table(u'core_usersearch')
def backwards(self, orm): # Deleting model 'Follow' db.delete_table(u'follow_follow')
def backwards(self, orm): # Deleting model 'Award' db.delete_table('videos_award')
def forwards(self, orm): # Deleting model 'OrganizationType' db.delete_table('site4crm_organizationtype') # Adding model 'StateCityArea' db.create_table('site4crm_statecityarea', ( ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('state', self.gf('django.db.models.fields.CharField')(max_length=5)), ('city', self.gf('django.db.models.fields.CharField')(max_length=5)), ('area', self.gf('django.db.models.fields.CharField')(max_length=5)), )) db.send_create_signal('site4crm', ['StateCityArea']) # Adding model 'ContactOrganization' db.create_table('site4crm_contactorganization', ( ('id', self.gf('django.db.models.fields.AutoField')(primary_key=True)), ('key', self.gf('django.db.models.fields.CharField')( unique=True, max_length=30)), ('name', self.gf('django.db.models.fields.CharField')(max_length=30)), )) db.send_create_signal('site4crm', ['ContactOrganization']) # Adding field 'Contact.title' db.add_column('site4crm_contact', 'title', self.gf('django.db.models.fields.CharField')( max_length=30, null=True, blank=True), keep_default=False) # Adding field 'Contact.domain' db.add_column('site4crm_contact', 'domain', self.gf('django.db.models.fields.related.ForeignKey')( to=orm['site4crm.Domain'], null=True), keep_default=False) # Deleting field 'Organization.type' db.delete_column('site4crm_organization', 'type_id') # Adding field 'Organization.orgtype' db.add_column('site4crm_organization', 'orgtype', self.gf('django.db.models.fields.related.ForeignKey')( to=orm['site4crm.ContactOrganization'], null=True), keep_default=False) # Deleting field 'AddressBook.province' db.delete_column('site4crm_addressbook', 'province') # Deleting field 'AddressBook.city' db.delete_column('site4crm_addressbook', 'city') # Deleting field 'AddressBook.country' db.delete_column('site4crm_addressbook', 'country') # Adding field 'AddressBook.statecityarea' db.add_column('site4crm_addressbook', 'statecityarea', self.gf('django.db.models.fields.related.ForeignKey')( default=0, to=orm['site4crm.StateCityArea'], blank=True), keep_default=False)
def backwards(self, orm): # Deleting model 'NestedModel' db.delete_table('testapp_nested_nestedmodel')
def backwards(self): db.delete_table("main_resourcestate")
def backwards(self, orm): # Deleting model 'UserExternalFavorites' db.delete_table('ieeetags_userexternalfavorites')
def backwards(self, orm): # Deleting model 'Sale' db.delete_table('sales_sale') # Removing M2M table for field shops on 'Sale' db.delete_table('sales_sale_shops') # Deleting model 'Product' db.delete_table('sales_product') # Deleting model 'ProductPicture' db.delete_table('sales_productpicture') # Deleting model 'ProductCategory' db.delete_table('sales_productcategory') # Deleting model 'ProductType' db.delete_table('sales_producttype') # Deleting model 'ProductBrand' db.delete_table('sales_productbrand')
def backwards(self, orm): # Deleting model 'KarmaNote' db.delete_table(u'member_karmanote')
def backwards(self, orm): # Deleting model 'NewsArticle' db.delete_table(u'web_newsarticle') # Deleting model 'About' db.delete_table(u'web_about') # Deleting model 'Alumni' db.delete_table(u'web_alumni') # Deleting model 'Contact' db.delete_table(u'web_contact') # Deleting model 'Moseyer' db.delete_table(u'web_moseyer') # Deleting model 'MoseyEvent' db.delete_table(u'web_moseyevent')
def backwards(self, orm): # Deleting model 'DirectExpense' db.delete_table('expense_directexpense') # Deleting model 'VariableExpense' db.delete_table('expense_variableexpense') # Deleting model 'FixedExpense' db.delete_table('expense_fixedexpense') # Deleting model 'HourlyMantainance' db.delete_table('expense_hourlymantainance') # Deleting model 'ScheduleMantainance' db.delete_table('expense_schedulemantainance') # Deleting model 'EventualMantainance' db.delete_table('expense_eventualmantainance')
def backwards(self, orm): # Deleting model 'TipComments' db.delete_table(u'recipe_tipcomments')
def backwards(self, orm): # Deleting model 'Pledge' db.delete_table('accounts_pledge')
def forwards(self, orm): # Removing M2M table for field source on 'Response' db.delete_table(db.shorten_name('responses_source'))
def backwards(self, orm): # Deleting model 'Rule' db.delete_table('redirector_rule')
def backwards(self, orm): # Deleting model 'AccessToken' db.delete_table('oauth_tokens_accesstoken')
def backwards(self, orm): # Deleting model 'ReminderSettings' db.delete_table('reminder_remindersettings')
def backwards(self, orm): # Deleting model 'InformationSource' db.delete_table('core_informationsource')