Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/models/events/pull_request_comment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# state :enum default("created")
# created_at :datetime not null
# updated_at :datetime not null
# github_id :integer
# github_id :bigint
# owner_id :bigint
# pull_request_id :bigint not null
# review_request_id :bigint
Expand Down
2 changes: 1 addition & 1 deletion app/models/events/review.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# state :enum not null
# created_at :datetime not null
# updated_at :datetime not null
# github_id :integer
# github_id :bigint
# owner_id :bigint
# pull_request_id :bigint not null
# repository_id :bigint
Expand Down
2 changes: 1 addition & 1 deletion app/models/events/review_comment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# state :enum default("active")
# created_at :datetime not null
# updated_at :datetime not null
# github_id :integer
# github_id :bigint
# owner_id :bigint
# pull_request_id :bigint not null
#
Expand Down
2 changes: 1 addition & 1 deletion app/models/repository.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
# relevance :enum default("unassigned"), not null
# created_at :datetime not null
# updated_at :datetime not null
# github_id :integer not null
# github_id :bigint not null
# language_id :bigint
# product_id :bigint
#
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class ChangeReviewsGithubIdToBigint < ActiveRecord::Migration[7.1]
def change
change_column :events_reviews, :github_id, :bigint
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class ChangeReviewCommentsGithubIdToBigint < ActiveRecord::Migration[7.1]
def change
change_column :events_review_comments, :github_id, :bigint
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class ChangePullRequestCommentsGithubIdToBigint < ActiveRecord::Migration[7.1]
def change
change_column :events_pull_request_comments, :github_id, :bigint
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class ChangeRepositoriesGithubIdToBigint < ActiveRecord::Migration[7.1]
def change
change_column :repositories, :github_id, :bigint
end
end
24 changes: 11 additions & 13 deletions db/structure.sql
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,6 @@ SET xmloption = content;
SET client_min_messages = warning;
SET row_security = off;

--
-- Name: public; Type: SCHEMA; Schema: -; Owner: -
--

-- *not* creating schema, since initdb creates it


--
-- Name: pg_stat_statements; Type: EXTENSION; Schema: -; Owner: -
--
Expand Down Expand Up @@ -576,7 +569,7 @@ ALTER SEQUENCE public.events_id_seq OWNED BY public.events.id;

CREATE TABLE public.events_pull_request_comments (
id bigint NOT NULL,
github_id integer,
github_id bigint,
body character varying,
opened_at timestamp without time zone NOT NULL,
created_at timestamp(6) without time zone NOT NULL,
Expand Down Expand Up @@ -727,7 +720,7 @@ ALTER SEQUENCE public.events_repositories_id_seq OWNED BY public.events_reposito

CREATE TABLE public.events_review_comments (
id bigint NOT NULL,
github_id integer,
github_id bigint,
body character varying,
created_at timestamp(6) without time zone NOT NULL,
updated_at timestamp(6) without time zone NOT NULL,
Expand Down Expand Up @@ -764,7 +757,7 @@ CREATE TABLE public.events_reviews (
id bigint NOT NULL,
pull_request_id bigint NOT NULL,
owner_id bigint,
github_id integer,
github_id bigint,
body character varying,
created_at timestamp(6) without time zone NOT NULL,
updated_at timestamp(6) without time zone NOT NULL,
Expand Down Expand Up @@ -880,9 +873,9 @@ CREATE TABLE public.external_pull_requests (
external_repository_id bigint NOT NULL,
created_at timestamp(6) without time zone NOT NULL,
updated_at timestamp(6) without time zone NOT NULL,
number integer,
opened_at timestamp without time zone,
state public.external_pull_request_state
state public.external_pull_request_state,
number integer
);


Expand Down Expand Up @@ -1269,7 +1262,7 @@ ALTER SEQUENCE public.products_id_seq OWNED BY public.products.id;

CREATE TABLE public.repositories (
id bigint NOT NULL,
github_id integer NOT NULL,
github_id bigint NOT NULL,
name character varying,
description character varying,
created_at timestamp(6) without time zone NOT NULL,
Expand Down Expand Up @@ -2667,6 +2660,7 @@ ALTER TABLE ONLY public.events_pushes
ADD CONSTRAINT fk_rails_3f633d82fd FOREIGN KEY (repository_id) REFERENCES public.repositories(id);



--
-- Name: events_pushes fk_rails_4767e99b87; Type: FK CONSTRAINT; Schema: public; Owner: -
--
Expand Down Expand Up @@ -2938,6 +2932,10 @@ ALTER TABLE ONLY public.review_requests
SET search_path TO "$user", public;

INSERT INTO "schema_migrations" (version) VALUES
('20250430195706'),
('20250430195700'),
('20250430195657'),
('20250430195652'),
('20240829142623'),
('20240627133952'),
('20221228121949'),
Expand Down
2 changes: 1 addition & 1 deletion spec/factories/events/pull_request_comments.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# state :enum default("created")
# created_at :datetime not null
# updated_at :datetime not null
# github_id :integer
# github_id :bigint
# owner_id :bigint
# pull_request_id :bigint not null
# review_request_id :bigint
Expand Down
2 changes: 1 addition & 1 deletion spec/factories/events/review_comments.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# state :enum default("active")
# created_at :datetime not null
# updated_at :datetime not null
# github_id :integer
# github_id :bigint
# owner_id :bigint
# pull_request_id :bigint not null
#
Expand Down
2 changes: 1 addition & 1 deletion spec/factories/events/reviews.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# state :enum not null
# created_at :datetime not null
# updated_at :datetime not null
# github_id :integer
# github_id :bigint
# owner_id :bigint
# pull_request_id :bigint not null
# repository_id :bigint
Expand Down
2 changes: 1 addition & 1 deletion spec/factories/repositories.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
# relevance :enum default("unassigned"), not null
# created_at :datetime not null
# updated_at :datetime not null
# github_id :integer not null
# github_id :bigint not null
# language_id :bigint
# product_id :bigint
#
Expand Down
2 changes: 1 addition & 1 deletion spec/models/events/pull_request_comment_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# state :enum default("created")
# created_at :datetime not null
# updated_at :datetime not null
# github_id :integer
# github_id :bigint
# owner_id :bigint
# pull_request_id :bigint not null
# review_request_id :bigint
Expand Down
2 changes: 1 addition & 1 deletion spec/models/events/review_comment_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# state :enum default("active")
# created_at :datetime not null
# updated_at :datetime not null
# github_id :integer
# github_id :bigint
# owner_id :bigint
# pull_request_id :bigint not null
#
Expand Down
2 changes: 1 addition & 1 deletion spec/models/events/review_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
# state :enum not null
# created_at :datetime not null
# updated_at :datetime not null
# github_id :integer
# github_id :bigint
# owner_id :bigint
# pull_request_id :bigint not null
# repository_id :bigint
Expand Down
2 changes: 1 addition & 1 deletion spec/models/repository_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
# relevance :enum default("unassigned"), not null
# created_at :datetime not null
# updated_at :datetime not null
# github_id :integer not null
# github_id :bigint not null
# language_id :bigint
# product_id :bigint
#
Expand Down
Loading