From 38b8fc0e9927c4146b4c8b309b2bcc644abd63d0 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Wed, 25 Feb 2026 23:02:35 +0900 Subject: feat(decks): add default note type setting per deck Allow each deck to specify a default note type that is auto-selected when creating new notes. Includes DB schema migration, server API updates, sync layer support, and UI for editing the default in the deck settings modal. Co-Authored-By: Claude Opus 4.6 --- drizzle/0005_certain_stick.sql | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 drizzle/0005_certain_stick.sql (limited to 'drizzle/0005_certain_stick.sql') diff --git a/drizzle/0005_certain_stick.sql b/drizzle/0005_certain_stick.sql new file mode 100644 index 0000000..379ee7c --- /dev/null +++ b/drizzle/0005_certain_stick.sql @@ -0,0 +1,3 @@ +ALTER TABLE "decks" ADD COLUMN "default_note_type_id" uuid;--> statement-breakpoint +ALTER TABLE "decks" ADD CONSTRAINT "decks_default_note_type_id_note_types_id_fk" FOREIGN KEY ("default_note_type_id") REFERENCES "public"."note_types"("id") ON DELETE no action ON UPDATE no action;--> statement-breakpoint +ALTER TABLE "decks" DROP COLUMN "new_cards_per_day"; \ No newline at end of file -- cgit v1.3-1-g0d28