Skip to content

Commit

Permalink
Remove unused columns
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathangreen committed Nov 3, 2023
1 parent c9817fe commit 8ac36d5
Showing 1 changed file with 0 additions and 35 deletions.
35 changes: 0 additions & 35 deletions core/model/collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
ForeignKey,
Integer,
Table,
Unicode,
UniqueConstraint,
exists,
select,
Expand Down Expand Up @@ -48,26 +47,8 @@ class Collection(Base, HasSessionCache):
__tablename__ = "collections"
id = Column(Integer, primary_key=True, nullable=False)

# TODO: This should no longer be used. And will be removed in the next release.
# Collections store their configurations in integration configurations now.
# This is only left here in case there needs to be a rollback to the current
# release.
_name_deprecated = Column("name", Unicode)

DATA_SOURCE_NAME_SETTING = "data_source"

# TODO: This should no longer be used. And will be removed in the next release.
# Collections store their configurations in integration configurations now.
# This is only left here in case there needs to be a rollback to the current
# release.
_external_account_id_deprecated = Column("external_account_id", Unicode)

# TODO: This should no longer be used. And will be removed in the next release.
# Collections store their configurations in integration configurations now.
# This is only left here in case there needs to be a rollback to the current
# release.
_external_integration_id_deprecated = Column("external_integration_id", Integer)

# How do we connect to the provider of this collection? Any url,
# authentication information, or additional configuration goes
# into the external integration, as does the 'protocol', which
Expand Down Expand Up @@ -624,22 +605,6 @@ def delete(self, search_index: ExternalSearchIndex | None = None) -> None:
_db.commit()


# TODO: This should no longer be used. And will be removed in the next release.
# Collections store their configurations in integration configurations now.
# This is only left here in case there needs to be a rollback to the current
# release.
_collections_libraries_deprecated: Table = Table(
"collections_libraries",
Base.metadata,
Column(
"collection_id",
Integer,
),
Column("library_id", Integer),
UniqueConstraint("collection_id", "library_id"),
)


collections_identifiers: Table = Table(
"collections_identifiers",
Base.metadata,
Expand Down

0 comments on commit 8ac36d5

Please sign in to comment.