bsky page scanning auditing
This commit is contained in:
11
db/migrate/20250812214415_create_bsky_user_last_scan.rb
Normal file
11
db/migrate/20250812214415_create_bsky_user_last_scan.rb
Normal file
@@ -0,0 +1,11 @@
|
||||
class CreateBskyUserLastScan < ActiveRecord::Migration[7.2]
|
||||
def change
|
||||
change_table :domain_users_bluesky_aux do |t|
|
||||
t.references :last_scan_log_entry,
|
||||
foreign_key: {
|
||||
to_table: :http_log_entries,
|
||||
},
|
||||
index: false
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,15 @@
|
||||
# typed: strict
|
||||
# frozen_string_literal: true
|
||||
|
||||
class CreateBskyUserLastPostsScan < ActiveRecord::Migration[7.2]
|
||||
sig { void }
|
||||
def change
|
||||
change_table :domain_users_bluesky_aux do |t|
|
||||
t.references :last_posts_scan_log_entry,
|
||||
foreign_key: {
|
||||
to_table: :http_log_entries,
|
||||
},
|
||||
index: false
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -1955,7 +1955,9 @@ CREATE TABLE public.domain_users_bluesky_aux (
|
||||
posts_count integer,
|
||||
scanned_profile_at timestamp(6) without time zone,
|
||||
scanned_posts_at timestamp(6) without time zone,
|
||||
profile_raw jsonb DEFAULT '{}'::jsonb
|
||||
profile_raw jsonb DEFAULT '{}'::jsonb,
|
||||
last_scan_log_entry_id bigint,
|
||||
last_posts_scan_log_entry_id bigint
|
||||
);
|
||||
|
||||
|
||||
@@ -5523,6 +5525,14 @@ ALTER TABLE ONLY public.domain_user_job_event_add_tracked_objects
|
||||
ADD CONSTRAINT fk_rails_03ea351597 FOREIGN KEY (user_id) REFERENCES public.domain_users(id);
|
||||
|
||||
|
||||
--
|
||||
-- Name: domain_users_bluesky_aux fk_rails_095a111783; Type: FK CONSTRAINT; Schema: public; Owner: -
|
||||
--
|
||||
|
||||
ALTER TABLE ONLY public.domain_users_bluesky_aux
|
||||
ADD CONSTRAINT fk_rails_095a111783 FOREIGN KEY (last_posts_scan_log_entry_id) REFERENCES public.http_log_entries(id);
|
||||
|
||||
|
||||
--
|
||||
-- Name: domain_users_fa_aux fk_rails_0d64d940cf; Type: FK CONSTRAINT; Schema: public; Owner: -
|
||||
--
|
||||
@@ -5795,6 +5805,14 @@ ALTER TABLE ONLY public.domain_user_post_favs
|
||||
ADD CONSTRAINT fk_rails_c79733f291 FOREIGN KEY (user_id) REFERENCES public.domain_users(id);
|
||||
|
||||
|
||||
--
|
||||
-- Name: domain_users_bluesky_aux fk_rails_cdeabf49ad; Type: FK CONSTRAINT; Schema: public; Owner: -
|
||||
--
|
||||
|
||||
ALTER TABLE ONLY public.domain_users_bluesky_aux
|
||||
ADD CONSTRAINT fk_rails_cdeabf49ad FOREIGN KEY (last_scan_log_entry_id) REFERENCES public.http_log_entries(id);
|
||||
|
||||
|
||||
--
|
||||
-- Name: domain_user_post_favs fk_rails_ce892be9a6; Type: FK CONSTRAINT; Schema: public; Owner: -
|
||||
--
|
||||
@@ -5866,6 +5884,8 @@ ALTER TABLE ONLY public.domain_twitter_tweets
|
||||
SET search_path TO "$user", public;
|
||||
|
||||
INSERT INTO "schema_migrations" (version) VALUES
|
||||
('20250812214902'),
|
||||
('20250812214415'),
|
||||
('20250812211640'),
|
||||
('20250812182033'),
|
||||
('20250811172839'),
|
||||
|
||||
Reference in New Issue
Block a user