diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-02-25 23:02:35 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-02-25 23:02:35 +0900 |
| commit | 38b8fc0e9927c4146b4c8b309b2bcc644abd63d0 (patch) | |
| tree | f76ba23251645e552fccd201362064b06de50bdd /drizzle/0005_certain_stick.sql | |
| parent | 7a77e72bb49ed3990a0c4581292a37a8a4f35231 (diff) | |
| download | kioku-38b8fc0e9927c4146b4c8b309b2bcc644abd63d0.tar.gz kioku-38b8fc0e9927c4146b4c8b309b2bcc644abd63d0.tar.zst kioku-38b8fc0e9927c4146b4c8b309b2bcc644abd63d0.zip | |
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 <noreply@anthropic.com>
Diffstat (limited to 'drizzle/0005_certain_stick.sql')
| -rw-r--r-- | drizzle/0005_certain_stick.sql | 3 |
1 files changed, 3 insertions, 0 deletions
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 |
