Add index to notecolours

This commit is contained in:
Keith Edmunds 2025-01-18 11:02:56 +00:00
parent 5e72f17793
commit b2000169b3

View File

@ -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)