roundabout,
created on Wednesday, 21 February 2024, 13:43:42 (1708523022),
received on Wednesday, 31 July 2024, 06:54:41 (1722408881)
Author identity: vlad <vlad.muntoiu@gmail.com>
8cb646933db53b60cf3f7b9b3cf5bf494c447645
models.py
@@ -269,6 +269,7 @@ with (app.app_context()):
head_route = db.Column(db.String(98), db.ForeignKey("repo.route", ondelete="CASCADE"), nullable=False) base_route = db.Column(db.String(98), db.ForeignKey("repo.route", ondelete="CASCADE"), nullable=False) owner_name = db.Column(db.String(32), db.ForeignKey("user.username"), nullable=False) state = db.Column(db.SmallInteger, nullable=False, default=0) # 0 pending, 1 merged, 2 rejectedhead = db.relationship("Repo", back_populates="heads", foreign_keys=[head_route]) base = db.relationship("Repo", back_populates="bases", foreign_keys=[base_route])