Some checks failed
CI/CD - Build & Test / Backend Tests (push) Has been cancelled
CI/CD - Build & Test / Frontend Tests (push) Has been cancelled
CI/CD - Build & Test / Security Scans (push) Has been cancelled
CI/CD - Build & Test / Docker Build Test (push) Has been cancelled
CI/CD - Build & Test / Terraform Validate (push) Has been cancelled
Deploy to Production / Build & Test (push) Has been cancelled
Deploy to Production / Security Scan (push) Has been cancelled
Deploy to Production / Build Docker Images (push) Has been cancelled
Deploy to Production / Deploy to Staging (push) Has been cancelled
Deploy to Production / E2E Tests (push) Has been cancelled
Deploy to Production / Deploy to Production (push) Has been cancelled
Fixed multiple PostgreSQL migration errors:
1. alembic/versions/a1b2c3d4e5f6_add_performance_indexes_v1_0_0.py:
- idx_logs_recent: Removed NOW() - INTERVAL condition
Now uses simple btree index with DESC ordering
- idx_apikeys_valid: Removed NOW() condition
Now uses simple partial index on is_active only
PostgreSQL doesn't allow non-IMMUTABLE functions in index predicates.
NOW() is STABLE, not IMMUTABLE, because it returns different values over time.
2. alembic/versions/b2c3d4e5f6a7_create_archive_tables_v1_0_0.py:
- Removed partitioning from scenario_logs_archive
- Removed partitioning from scenario_metrics_archive
DATE_TRUNC() in partition key is not IMMUTABLE.
Tables work without partitioning for now.
3. alembic.ini:
- Changed localhost to postgres (already done in previous commit)
Migrations now run successfully without IMMUTABLE errors.
Generic single-database configuration.