SurfSense/surfsense_backend
CREDO23 3b31352e19 fix: make migration 168 idempotent for from-scratch upgrades
Migration 168 used bare add_column/drop_column, so `alembic upgrade head`
from an empty DB failed at 168 ("column revoked_at already exists"): the
0_initial_schema migration bootstraps via Base.metadata.create_all (the live
ORM shape), which already includes the hardened refresh_tokens columns, and
168's unguarded ALTERs then collided.

Guard every step (ADD COLUMN IF NOT EXISTS, DROP COLUMN IF EXISTS, existence-
checked backfill) so 168 no-ops on already-hardened (create_all) databases
while still fully transforming legacy is_revoked-shape databases. Matches the
guarded style already used by migrations 92/149/169. Net schema effect is
unchanged. Restores a clean from-scratch `alembic upgrade head` to head.
2026-06-26 11:35:30 +02:00
..
alembic fix: make migration 168 idempotent for from-scratch upgrades 2026-06-26 11:35:30 +02:00
app feat: fix desktop auth issues 2026-06-25 20:58:50 -07:00
scripts fix(auth):enforce session auth cutover 2026-06-24 03:55:39 +05:30
tests feat: antropic model added fix & kb tooling fixes 2026-06-25 20:19:44 -07:00
.dockerignore chore(backend): exclude tests/ from production Docker image 2026-05-06 17:16:22 +05:30
.env.example Merge pull request #1539 from CREDO23/improve-chat-agent-context-and-citations 2026-06-25 13:34:52 -07:00
.gitignore fix(gitignore): anchor data/ rule; track podcast voice catalogs 2026-06-12 00:06:37 +02:00
.python-version feat: SurfSense v0.0.6 init 2025-03-14 18:53:14 -07:00
alembic.ini add github connector, add alembic for db migrations, fix bug updating connectors 2025-04-13 13:56:22 -07:00
celery_worker.py fix: celery_app path and gmail indexing 2025-10-21 21:11:41 -07:00
Dockerfile feat(proxy): integrate Scrapling for enhanced web scraping capabilities 2026-06-09 00:15:10 -07:00
main.py feat(observability): add OpenTelemetry process bootstrap 2026-05-21 23:01:54 +05:30
pyproject.toml feat: bumped version to 0.0.30 2026-06-25 21:05:04 -07:00
uv.lock feat: bumped version to 0.0.30 2026-06-25 21:05:04 -07:00