Skip to content

Commit

Permalink
fix: move isPrimary and language level to the m:m table
Browse files Browse the repository at this point in the history
  • Loading branch information
aarbanas committed Sep 21, 2024
1 parent 1f81cb1 commit c69ee94
Show file tree
Hide file tree
Showing 5 changed files with 840 additions and 27 deletions.
5 changes: 5 additions & 0 deletions drizzle/0005_bizarre_nightshade.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
DROP INDEX IF EXISTS "idx_name";--> statement-breakpoint
ALTER TABLE "profile_address" ADD COLUMN "is_primary" boolean DEFAULT false;--> statement-breakpoint
ALTER TABLE "profile_language" ADD COLUMN "level" "languagelevel" NOT NULL;--> statement-breakpoint
ALTER TABLE "address" DROP COLUMN IF EXISTS "is_primary";--> statement-breakpoint
ALTER TABLE "language" DROP COLUMN IF EXISTS "level";
Loading

0 comments on commit c69ee94

Please sign in to comment.