forked from rDrama/rDrama
delete granted_by column
parent
baa447ba19
commit
d73990d5b2
|
@ -15,7 +15,6 @@ class AwardRelationship(Base):
|
||||||
comment_id = Column(Integer, ForeignKey("comments.id"))
|
comment_id = Column(Integer, ForeignKey("comments.id"))
|
||||||
kind = Column(String)
|
kind = Column(String)
|
||||||
awarded_utc = Column(Integer)
|
awarded_utc = Column(Integer)
|
||||||
granted_by = Column(Integer, ForeignKey("users.id"))
|
|
||||||
created_utc = Column(Integer)
|
created_utc = Column(Integer)
|
||||||
|
|
||||||
user = relationship("User", primaryjoin="AwardRelationship.user_id==User.id", back_populates="awards")
|
user = relationship("User", primaryjoin="AwardRelationship.user_id==User.id", back_populates="awards")
|
||||||
|
|
10
schema.sql
10
schema.sql
|
@ -167,7 +167,6 @@ CREATE TABLE public.award_relationships (
|
||||||
kind character varying(20) NOT NULL,
|
kind character varying(20) NOT NULL,
|
||||||
awarded_utc integer,
|
awarded_utc integer,
|
||||||
created_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);
|
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: -
|
-- 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
|
-- PostgreSQL database dump complete
|
||||||
--
|
--
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue