diff --git a/warehouse/organizations/models.py b/warehouse/organizations/models.py index e094488d47d3..38b8bdb860f0 100644 --- a/warehouse/organizations/models.py +++ b/warehouse/organizations/models.py @@ -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, @@ -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),