Skip to content

Commit

Permalink
Fix: remove school name index
Browse files Browse the repository at this point in the history
  • Loading branch information
Rotheem committed Jan 7, 2025
1 parent 08acd0d commit 66cae75
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/core/models_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ class CoreSchool(Base):
__tablename__ = "core_school"

id: Mapped[PrimaryKey]
name: Mapped[str] = mapped_column(String, index=True, nullable=False, unique=True)
email_regex: Mapped[str] = mapped_column(String, nullable=False)
name: Mapped[str] = mapped_column(String, unique=True)
email_regex: Mapped[str] = mapped_column(String)


class CoreAssociationMembership(Base):
Expand Down
2 changes: 1 addition & 1 deletion migrations/versions/27-schools.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def upgrade() -> None:
op.create_table(
"core_school",
sa.Column("id", sa.Uuid(), nullable=False, index=True),
sa.Column("name", sa.String(), nullable=False, index=True, unique=True),
sa.Column("name", sa.String(), nullable=False, unique=True),
sa.Column("email_regex", sa.String(), nullable=False),
sa.PrimaryKeyConstraint("id"),
)
Expand Down

0 comments on commit 66cae75

Please sign in to comment.