Skip to content
Snippets Groups Projects
Commit db9cbb6f authored by Thomas Schneider's avatar Thomas Schneider
Browse files

models: Fruitless UUID fix attempts

I hoped this would fix SQLite.  It does not.
parent 3425dbe3
No related branches found
No related tags found
No related merge requests found
...@@ -2,14 +2,14 @@ from uuid import UUID ...@@ -2,14 +2,14 @@ from uuid import UUID
from uuid_extensions import uuid7 from uuid_extensions import uuid7
from sqlalchemy import String, Text from sqlalchemy import String, Text, Uuid
from sqlalchemy.orm import Mapped, mapped_column from sqlalchemy.orm import Mapped, mapped_column
from . import db from . import db
class Schild(db.Model): class Schild(db.Model):
ident: Mapped[UUID] = mapped_column(primary_key=True, default=uuid7) ident: Mapped[UUID] = mapped_column(Uuid, primary_key=True, default=uuid7)
title: Mapped[str] = mapped_column(String(31)) title: Mapped[str] = mapped_column(String(31))
text: Mapped[str] = mapped_column(Text) text: Mapped[str] = mapped_column(Text)
image: Mapped[str] = mapped_column(String(255), nullable=True) image: Mapped[str] = mapped_column(String(255), nullable=True)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment