50e25e3ee8
Rename subdirectories for a cleaner single-repo layout: - website-monitoring-backend/ → backend/ - website-monitoring-frontend/ → frontend/ - website-monitoring-devops/ → devops/ Update all references in package.json scripts, CI workflows, docker-compose, pre-commit hooks, and documentation. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
12 lines
687 B
SQL
12 lines
687 B
SQL
-- Fix crawl_sessions table by adding missing columns
|
|
-- Add missing columns to crawl_sessions table
|
|
ALTER TABLE crawl_sessions ADD COLUMN IF NOT EXISTS processed_urls TEXT[] DEFAULT ARRAY[]::TEXT[];
|
|
ALTER TABLE crawl_sessions ADD COLUMN IF NOT EXISTS pages_discovered INTEGER DEFAULT 0;
|
|
ALTER TABLE crawl_sessions ADD COLUMN IF NOT EXISTS pages_processed INTEGER DEFAULT 0;
|
|
ALTER TABLE crawl_sessions ADD COLUMN IF NOT EXISTS current_url VARCHAR;
|
|
ALTER TABLE crawl_sessions ADD COLUMN IF NOT EXISTS error_message TEXT;
|
|
ALTER TABLE crawl_sessions ADD COLUMN IF NOT EXISTS metadata JSONB DEFAULT '{}'::jsonb;
|
|
|
|
-- Refresh schema cache to pick up new columns
|
|
NOTIFY pgrst, 'reload schema';
|