Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion lib/realtime_web/dashboard/tenant_migrations.ex
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,15 @@ defmodule RealtimeWeb.Dashboard.TenantMigrations do
alias Realtime.Api.Tenant
alias Realtime.Database

@pg_delta_filter ~s({"and": [{"*/schema": "realtime"}, {"not": {"table/is_partition": true}}]})
@pg_delta_filter ~s"""
{
"and": [
{"*/schema": "realtime"},
{"not": {"table/is_partition": true}},
{"not": {"and": [{"objectType": "rls_policy"}, {"operation": "drop"}]}}
]
}
"""
@application_name "realtime_dashboard_tenant_migrations"
@query_timeout 30_000
@schema_migrations_query "SELECT version, inserted_at FROM realtime.schema_migrations ORDER BY version DESC"
Expand Down
Loading