Home / Function/ down() — supabase Function Reference

down() — supabase Function Reference

Architecture documentation for the down() function in 20250819_222013_update_authors.ts from the supabase codebase.

Entity Profile

Relationship Graph

Source Code

apps/cms/src/migrations/20250819_222013_update_authors.ts lines 10–15

export async function down({ db }: MigrateDownArgs): Promise<void> {
  await db.execute(sql`
   DROP INDEX "authors_author_id_idx";
  ALTER TABLE "authors" ALTER COLUMN "author_id" DROP NOT NULL;
  ALTER TABLE "authors" DROP COLUMN "company";`)
}

Subdomains

Analyze Your Own Codebase

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

Try Supermodel Free