You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
subscriptions_search is a materialized view created manually through a migration. When running alembic's revision it creates the following migration
defupgrade() ->None:
# ### commands auto generated by Alembic - please adjust! ###op.create_table(
"subscriptions_search",
sa.Column("subscription_id", sqlalchemy_utils.types.uuid.UUIDType(), nullable=False),
sa.Column("tsv", sqlalchemy_utils.types.ts_vector.TSVectorType(), nullable=True),
sa.ForeignKeyConstraint(
["subscription_id"],
["subscriptions.subscription_id"],
),
sa.PrimaryKeyConstraint("subscription_id"),
)
op.create_index(
op.f("ix_subscriptions_search_subscription_id"), "subscriptions_search", ["subscription_id"], unique=False
)
# ### end Alembic commands ###defdowngrade() ->None:
# ### commands auto generated by Alembic - please adjust! ###op.drop_index(op.f("ix_subscriptions_search_subscription_id"), table_name="subscriptions_search")
op.drop_table("subscriptions_search")
# ### end Alembic commands ###
With the following log messages:
2024-07-29 13:14:47 [info ] Detected added table 'subscriptions_search' [alembic.autogenerate.compare]
2024-07-29 13:14:47 [info ] Detected added index ''ix_subscriptions_search_subscription_id'' on '('subscription_id',)' [alembic.autogenerate.compare]
This is not correct and should be fixed by preferably modifying orchestrator.db.models.SubscriptionSearchView so that alembic recognizes it as a materialized view. If that is not possible, the model should be excluded from alembic altogether.
The text was updated successfully, but these errors were encountered:
…togeneration
The subscriptions_search view is a manually created materialized view and should not be managed by Alembic. This commit adds an info flag to the view’s table definition and updates the include_object logic to skip any table marked as a materialized view. This prevents erroneous migration generation for subscriptions_search. Resolves#724.
…togeneration
The subscriptions_search view is a manually created materialized view and should not be managed by Alembic. This commit adds an info flag to the view’s table definition and updates the include_object logic to skip any table marked as a materialized view. This prevents erroneous migration generation for subscriptions_search. Resolves#724.
subscriptions_search
is a materialized view created manually through a migration. When running alembic's revision it creates the following migrationWith the following log messages:
This is not correct and should be fixed by preferably modifying
orchestrator.db.models.SubscriptionSearchView
so that alembic recognizes it as a materialized view. If that is not possible, the model should be excluded from alembic altogether.The text was updated successfully, but these errors were encountered: