BostonAreaHuman
BostonAreaHuman

Reputation: 1459

Using SQLlite and SQLAlchemy how can I define a table to have TEXT and BLOB instead of VARCHAR?

this is my definition of my table.. not sure how to trigger it to make the column a TEXT or BLOB column instead of using VARCHAR all the time...

class Mailings(db.Model):
    __tablename__ = 'mailings'
    id: Mapped[str] = mapped_column(primary_key=True)
    title: Mapped[str]
    textversion: Mapped[str]
    htmlversion: Mapped[str]
    permalink: Mapped[str]

Upvotes: 0

Views: 9

Answers (0)

Related Questions