Skip to content

Commit

Permalink
Custom JSON columns are no longer being used
Browse files Browse the repository at this point in the history
  • Loading branch information
jace committed Mar 7, 2024
1 parent 2b0191e commit c920522
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
15 changes: 0 additions & 15 deletions boxoffice/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
from flask_sqlalchemy import SQLAlchemy
from sqlalchemy.dialects import postgresql
from sqlalchemy.orm import DeclarativeBase, Mapped
from sqlalchemy_json import mutable_json_type
import sqlalchemy as sa

from coaster.sqlalchemy import (
Expand All @@ -18,7 +17,6 @@
BaseScopedNameMixin,
DynamicMapped,
IdMixin,
JsonDict,
MarkdownColumn,
ModelBase,
Query,
Expand All @@ -41,19 +39,6 @@ class Model(ModelBase, DeclarativeBase):
datetime,
sa.orm.mapped_column(sa.TIMESTAMP(timezone=True), default=sa.func.utcnow()),
]
jsonb: TypeAlias = Annotated[
dict,
sa.orm.mapped_column(JsonDict()),
]
jsonb_dict: TypeAlias = Annotated[
dict,
sa.orm.mapped_column(
JsonDict(),
nullable=False,
server_default=sa.text("'{}'::jsonb"),
),
]


TimestampMixin.__with_timezone__ = True
db = SQLAlchemy(metadata=Model.metadata, query_class=Query) # type: ignore[arg-type]
Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,5 @@ python-dotenv
pytz
rq
SQLAlchemy
sqlalchemy-json
SQLAlchemy-Utils
typing-extensions

0 comments on commit c920522

Please sign in to comment.