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
16 changes: 16 additions & 0 deletions apps/dashboard/drizzle/0007_drop_legacy_cache_tables.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
-- Drop the cache-era tables removed from the schema in #193 (see
-- docs/platform-plan.md, "Incidents"). Only apply after the throttled
-- production purge has emptied them: dropping a multi-GB table in one
-- statement blocks the deploy pipeline. Check first with
-- wrangler d1 execute <db> --remote --command "SELECT
-- (SELECT COUNT(*) FROM github_webhook_event) AS webhook_events,
-- (SELECT COUNT(*) FROM github_revalidation_signal) AS signals,
-- (SELECT COUNT(*) FROM github_cache_namespace) AS namespaces,
-- (SELECT COUNT(*) FROM github_response_cache) AS responses"
DROP TABLE IF EXISTS `github_webhook_event`;
--> statement-breakpoint
DROP TABLE IF EXISTS `github_revalidation_signal`;
--> statement-breakpoint
DROP TABLE IF EXISTS `github_cache_namespace`;
--> statement-breakpoint
DROP TABLE IF EXISTS `github_response_cache`;
Loading