Skip to content

Commit

Permalink
fix: skip rebuilding activity_feed view
Browse files Browse the repository at this point in the history
  • Loading branch information
martastain committed Jan 30, 2025
1 parent b6c9bc6 commit 803f059
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions schemas/migrations/00000001.sql
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,15 @@ CREATE OR REPLACE FUNCTION create_activity_feed_in_projects ()
);
CREATE INDEX IF NOT EXISTS idx_files_activity_id ON files(activity_id);

IF EXISTS (
SELECT 1
FROM information_schema.columns
WHERE table_schema = rec.nspname
AND table_name = 'activity_feed'
) THEN
CONTINUE;
END IF;


CREATE OR REPLACE VIEW activity_feed AS
SELECT
Expand Down

0 comments on commit 803f059

Please sign in to comment.