Skip to content

Commit

Permalink
Fix erroneous migration originating from pypi#11184 (pypi#11271)
Browse files Browse the repository at this point in the history
  • Loading branch information
sterbo authored and domdfcoding committed Jun 7, 2022
1 parent 05f9f8d commit e35d3d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions warehouse/organizations/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class OrganizationProject(db.Model):

__repr__ = make_repr("project_id", "organization_id", "is_active")

is_active = Column(Boolean, nullable=False, default=False)
is_active = Column(Boolean, nullable=False, server_default=sql.false())
organization_id = Column(
ForeignKey("organizations.id", onupdate="CASCADE", ondelete="CASCADE"),
nullable=False,
Expand Down Expand Up @@ -151,7 +151,7 @@ class Organization(HasEvents, db.Model):
)
link_url = Column(URLType, nullable=False)
description = Column(Text, nullable=False)
is_active = Column(Boolean, nullable=False, default=False)
is_active = Column(Boolean, nullable=False, server_default=sql.false())
is_approved = Column(Boolean)
created = Column(
DateTime(timezone=False),
Expand Down

0 comments on commit e35d3d0

Please sign in to comment.