Fix CI database setup: Index conflicts and PostgreSQL type incompatibility#11
Draft
Copilot wants to merge 5 commits into
Draft
Fix CI database setup: Index conflicts and PostgreSQL type incompatibility#11Copilot wants to merge 5 commits into
Copilot wants to merge 5 commits into
Conversation
❌ Deploy Preview for spectacular-strudel-d144b2 failed.
|
…bility, improve CI workflow Co-authored-by: Hellinferno <142572627+Hellinferno@users.noreply.github.com>
Co-authored-by: Hellinferno <142572627+Hellinferno@users.noreply.github.com>
…n handling Co-authored-by: Hellinferno <142572627+Hellinferno@users.noreply.github.com>
Co-authored-by: Hellinferno <142572627+Hellinferno@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix index ix_users_email already exists error
Fix CI database setup: Index conflicts and PostgreSQL type incompatibility
Jan 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request
Description
CI failures caused by:
ix_users_email already exists)Type of Change
Related Issues
Addresses CI/CD pipeline database failures.
Changes Made
Test Infrastructure
tests/conftest.pywith session-scoped engine and function-scoped db_session fixturesBase.metadata.drop_all()before each test prevents index conflictstest_database_integration.pyDatabase Compatibility
src/models.py:JSONB→JSON(cross-database compatible)INET→String(45)(supports IPv4/IPv6)CI Workflow
pg_isready)Import Fixes
alembic/env.pyto import fromsrc.modelsinstead ofmodelsTesting
Test Commands
Screenshots
N/A
Checklist
Additional Notes
Database Type Changes: The shift from JSONB to JSON and INET to String maintains functionality while enabling cross-database compatibility. PostgreSQL will still use JSONB internally when available; SQLite gets standard JSON support.
Encryption Key: Generated valid Fernet key for CI. Production keys should be rotated separately.
Deployment Notes
ENCRYPTION_KEYmust be valid base64-encoded Fernet keyReviewer Notes:
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.