down() — supabase Function Reference
Architecture documentation for the down() function in 20250821_165446.ts from the supabase codebase.
Entity Profile
Relationship Graph
Source Code
apps/cms/src/migrations/20250821_165446.ts lines 13–21
export async function down({ db, payload, req }: MigrateDownArgs): Promise<void> {
await db.execute(sql`
ALTER TABLE "_customers_v" ADD COLUMN "autosave" boolean;
ALTER TABLE "_events_v" ADD COLUMN "autosave" boolean;
ALTER TABLE "_posts_v" ADD COLUMN "autosave" boolean;
CREATE INDEX "_customers_v_autosave_idx" ON "_customers_v" USING btree ("autosave");
CREATE INDEX "_events_v_autosave_idx" ON "_events_v" USING btree ("autosave");
CREATE INDEX "_posts_v_autosave_idx" ON "_posts_v" USING btree ("autosave");`)
}
Domain
Subdomains
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free