From b2000169b3dfd76ff08313c2e245445de89cabf1 Mon Sep 17 00:00:00 2001 From: Keith Edmunds Date: Sat, 18 Jan 2025 11:02:56 +0000 Subject: [PATCH] Add index to notecolours --- app/dbtables.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/dbtables.py b/app/dbtables.py index c44ca53..1d31e4f 100644 --- a/app/dbtables.py +++ b/app/dbtables.py @@ -27,7 +27,7 @@ class NoteColoursTable(Model): __tablename__ = "notecolours" id: Mapped[int] = mapped_column(primary_key=True, autoincrement=True) - substring: Mapped[str] = mapped_column(String(256), index=False) + substring: Mapped[str] = mapped_column(String(256), index=True) colour: Mapped[str] = mapped_column(String(21), index=False) enabled: Mapped[bool] = mapped_column(default=True, index=True) foreground: Mapped[Optional[str]] = mapped_column(String(21), index=False)