up() — supabase Function Reference
Architecture documentation for the up() 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 3–8
export async function up({ db }: MigrateUpArgs): Promise<void> {
await db.execute(sql`
ALTER TABLE "authors" ALTER COLUMN "author_id" SET NOT NULL;
ALTER TABLE "authors" ADD COLUMN "company" varchar;
CREATE UNIQUE INDEX "authors_author_id_idx" ON "authors" USING btree ("author_id");`)
}
Domain
Subdomains
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free