From dcd0b6a14a2029b3b895654ef6ffefa5130342f7 Mon Sep 17 00:00:00 2001 From: Marc Vilanova Date: Wed, 29 Nov 2023 13:02:12 -0800 Subject: [PATCH] removes search vector from signal instance table --- .../versions/2023-11-29_bdaeabba3e53.py | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 src/dispatch/database/revisions/tenant/versions/2023-11-29_bdaeabba3e53.py diff --git a/src/dispatch/database/revisions/tenant/versions/2023-11-29_bdaeabba3e53.py b/src/dispatch/database/revisions/tenant/versions/2023-11-29_bdaeabba3e53.py new file mode 100644 index 000000000000..9a89179e9ccd --- /dev/null +++ b/src/dispatch/database/revisions/tenant/versions/2023-11-29_bdaeabba3e53.py @@ -0,0 +1,28 @@ +"""Removes search vector from signal instance model + +Revision ID: bdaeabba3e53 +Revises: f2605bfc1f59 +Create Date: 2023-11-29 12:59:45.408085 + +""" +from alembic import op + +# revision identifiers, used by Alembic. +revision = "bdaeabba3e53" +down_revision = "f2605bfc1f59" +branch_labels = None +depends_on = None + + +def upgrade(): + # ### commands auto generated by Alembic - please adjust! ### + op.drop_index( + "signal_instance_search_vector_idx", table_name="signal_instance", postgresql_using="gin" + ) + op.drop_column("signal_instance", "search_vector") + # ### end Alembic commands ### + + +def downgrade(): + # ### commands auto generated by Alembic - please adjust! ### + pass