Home / Function/ up() — supabase Function Reference

up() — supabase Function Reference

Architecture documentation for the up() function in 20250821_165446.ts from the supabase codebase.

Entity Profile

Relationship Graph

Source Code

apps/cms/src/migrations/20250821_165446.ts lines 3–11

export async function up({ db, payload, req }: MigrateUpArgs): Promise<void> {
  await db.execute(sql`
   DROP INDEX "_customers_v_autosave_idx";
  DROP INDEX "_events_v_autosave_idx";
  DROP INDEX "_posts_v_autosave_idx";
  ALTER TABLE "_customers_v" DROP COLUMN "autosave";
  ALTER TABLE "_events_v" DROP COLUMN "autosave";
  ALTER TABLE "_posts_v" DROP COLUMN "autosave";`)
}

Subdomains

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free