def forwards(self, orm): #db.rename_column('askbot_exerciseview', 'exercise_post_id', 'exercise_id') innodb_ready_rename_column(orm=orm, models=self.__class__.models, table='askbot_exerciseview', old_column_name='exercise_post_id', new_column_name='exercise_id', app_model='askbot.exerciseview', new_field_name='exercise')
def forwards(self, orm): #db.rename_column(u'repute', 'question_post_id', 'question_id') innodb_ready_rename_column(orm=orm, models=self.__class__.models, table='repute', old_column_name='question_post_id', new_column_name='question_id', app_model='askbot.repute', new_field_name='question')
def forwards(self, orm): #db.rename_column(u'activity', 'exercise_post_id', 'exercise_id') innodb_ready_rename_column( orm=orm, models=self.__class__.models, table='activity', old_column_name='exercise_post_id', new_column_name='exercise_id', app_model='askbot.activity', new_field_name='exercise' )
def forwards(self, orm): #db.rename_column('askbot_anonymousanswer', 'question_post_id', 'question_id') innodb_ready_rename_column( orm=orm, models=self.__class__.models, table='askbot_anonymousanswer', old_column_name='question_post_id', new_column_name='question_id', app_model='askbot.anonymousanswer', new_field_name='question' )
def forwards(self, orm): # db.rename_column(u'activity', 'question_post_id', 'question_id') innodb_ready_rename_column( orm=orm, models=self.__class__.models, table="activity", old_column_name="question_post_id", new_column_name="question_id", app_model="askbot.activity", new_field_name="question", )
def forwards(self, orm): #db.rename_column('askbot_thread', 'accepted_problem_post_id', 'accepted_problem_id') innodb_ready_rename_column(orm=orm, models=self.__class__.models, table='askbot_thread', old_column_name='accepted_problem_post_id', new_column_name='accepted_problem_id', app_model='askbot.thread', new_field_name='accepted_problem') # Deleting model 'Comment' db.delete_table(u'comment') # Deleting model 'Problem' db.delete_table(u'problem') # Deleting model 'Exercise' db.delete_table(u'exercise') if 'test' not in sys.argv and not db.dry_run: # Don't confuse users print TERM_YELLOW, 'You are free now to remove content types for Exercise/Problem/Comment models', TERM_RESET
def forwards(self, orm): #db.rename_column('askbot_thread', 'accepted_answer_post_id', 'accepted_answer_id') innodb_ready_rename_column( orm=orm, models=self.__class__.models, table='askbot_thread', old_column_name='accepted_answer_post_id', new_column_name='accepted_answer_id', app_model='askbot.thread', new_field_name='accepted_answer' ) # Deleting model 'Comment' db.delete_table(u'comment') # Deleting model 'Answer' db.delete_table(u'answer') # Deleting model 'Question' db.delete_table(u'question') if 'test' not in sys.argv and not db.dry_run: # Don't confuse users print TERM_YELLOW, 'You are free now to remove content types for Question/Answer/Comment models', TERM_RESET