def downgrade(): with op.batch_alter_table(CONVERSATION) as batch_op: for info in INDEX_TO_COLUMN: batch_op.drop_index(info[0]) for column in COLUMNS: migration_utils.drop_column(CONVERSATION, column[0])
def downgrade(): migration_utils.drop_column(TABLE_NAME, TARGET_BRANCH_PROTECTED) migration_utils.drop_column(TABLE_NAME, FIRST_ANNOTATOR_ID) migration_utils.drop_column(TABLE_NAME, FIRST_ANNOTATED_AT)
def upgrade(): migration_utils.drop_column(TABLE_NAME, COLUMN_NAME)
def downgrade(): with op.batch_alter_table(TABLE_NAME) as batch_op: batch_op.drop_index(COLUMNS["slot_name"]["index"]) for column in COLUMNS: migration_utils.drop_column(TABLE_NAME, column)
def downgrade(): migration_utils.drop_column("template", NEW_COLUMN_NAME)
def downgrade(): migration_utils.drop_column("user_role", "description") migration_utils.drop_column("user_role", "is_default")
def downgrade(): migration_utils.drop_column("lookup_table", NEW_COLUMN)
def downgrade(): for column_name, _ in COLUMNS: migration_utils.drop_column(TABLE_NAME, column_name)
def downgrade(): migration_utils.drop_column("rasa_x_user", "data")
def upgrade(): # This is done because 0.25.0 release issue # Check the issue #1983 if migration_utils.table_has_column("conversation_event", "is_unflagged"): migration_utils.drop_column("conversation_event", "is_unflagged")
def downgrade(): migration_utils.drop_column(TABLE_NAME, "username") with op.batch_alter_table( TABLE_NAME) as batch_op: # type: op.BatchOperations batch_op.drop_constraint(FOREIGN_KEY_NAME)
def downgrade(): migration_utils.drop_column("nlu_training_data_entity", "extractor")