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)
コード例 #3
0
def upgrade():
    migration_utils.drop_column(TABLE_NAME, COLUMN_NAME)
コード例 #4
0
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)
コード例 #5
0
def downgrade():
    migration_utils.drop_column("template", NEW_COLUMN_NAME)
コード例 #6
0
def downgrade():
    migration_utils.drop_column("user_role", "description")
    migration_utils.drop_column("user_role", "is_default")
コード例 #7
0
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)
コード例 #9
0
def downgrade():
    migration_utils.drop_column("rasa_x_user", "data")
コード例 #10
0
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)
コード例 #12
0
def downgrade():
    migration_utils.drop_column("nlu_training_data_entity", "extractor")