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
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
-- Drop evaluatedProjects table (data migrated into projectCatalog)
Comment thread
ulemons marked this conversation as resolved.
DROP TABLE IF EXISTS "evaluatedProjects";
Comment thread
ulemons marked this conversation as resolved.
Comment thread
ulemons marked this conversation as resolved.

-- Remove ossfCriticalityScore from projectCatalog
ALTER TABLE "projectCatalog" DROP COLUMN IF EXISTS "ossfCriticalityScore";
Comment thread
ulemons marked this conversation as resolved.
DROP INDEX IF EXISTS "ix_projectCatalog_ossfCriticalityScore";
Comment thread
ulemons marked this conversation as resolved.

-- Add new columns to projectCatalog
ALTER TABLE "projectCatalog"
ADD COLUMN IF NOT EXISTS "source" VARCHAR(64),
ADD COLUMN IF NOT EXISTS "action" VARCHAR(16) NOT NULL DEFAULT 'auto',
ADD COLUMN IF NOT EXISTS "evaluatedAt" TIMESTAMP WITH TIME ZONE,
ADD COLUMN IF NOT EXISTS "onboardedAt" TIMESTAMP WITH TIME ZONE;

CREATE INDEX "ix_projectCatalog_source" ON "projectCatalog" ("source");
CREATE INDEX "ix_projectCatalog_action" ON "projectCatalog" ("action");
Loading