delete granted_by column

remotes/1693176582716663532/tmp_refs/heads/watchparty
Aevann1 2022-10-06 08:35:42 +02:00
parent baa447ba19
commit d73990d5b2
2 changed files with 0 additions and 11 deletions

View File

@ -15,7 +15,6 @@ class AwardRelationship(Base):
comment_id = Column(Integer, ForeignKey("comments.id"))
kind = Column(String)
awarded_utc = Column(Integer)
granted_by = Column(Integer, ForeignKey("users.id"))
created_utc = Column(Integer)
user = relationship("User", primaryjoin="AwardRelationship.user_id==User.id", back_populates="awards")

View File

@ -167,7 +167,6 @@ CREATE TABLE public.award_relationships (
kind character varying(20) NOT NULL,
awarded_utc integer,
created_utc integer,
granted_by integer
);
@ -2101,14 +2100,6 @@ ALTER TABLE ONLY public.award_relationships
ADD CONSTRAINT award_comment_fkey FOREIGN KEY (comment_id) REFERENCES public.comments(id);
--
-- Name: award_relationships award_granted_by_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
ALTER TABLE ONLY public.award_relationships
ADD CONSTRAINT award_granted_by_fkey FOREIGN KEY (granted_by) REFERENCES public.users(id);
--
-- Name: award_relationships award_submission_fkey; Type: FK CONSTRAINT; Schema: public; Owner: -
--
@ -2688,4 +2679,3 @@ ALTER TABLE ONLY public.comment_option_votes
--
-- PostgreSQL database dump complete
--