## Implementation Plan: Remove Temporary Migration Code ### Changes Required Exactly six deletions across two files: **File: `./devplacepy/database/schema.py`** 1. Delete lines 9–30 (the `BUG_TABLE_RENAMES` tuple and the entire `migrate_bug_tables_to_issue_tables()` function). 2. Delete line 359 (the call `migrate_bug_tables_to_issue_tables()` inside `init_db()`). **File: `./devplacepy/database/__init__.py`** 3. **Edit line 25** – remove the identifiers `BUG_TABLE_RENAMES` and `migrate_bug_tables_to_issue_tables` from the import statement, along with the trailing comma that follows the second identifier (if any). Keep all other imports on that line intact. 4. Delete lines 225–226 (remove the string literals `"BUG_TABLE_RENAMES"` and `"migrate_bug_tables_to_issue_tables"` from `__all__`). If a trailing comma remains after the preceding entry, it should be preserved or cleaned up so the list is syntactically valid. No other files are modified. The adjacent migrations (`migrate_ai_gateway_settings`, `backfill_api_keys`, `_backfill_gamification`) are left untouched. ### Execution Notes After making the deletions, immediately verify that Python can parse both modified files: ```bash python3 -c "import py_compile; py_compile.compile('./devplacepy/database/schema.py', doraise=True)" python3 -c "import py_compile; py_compile.compile('./devplacepy/database/__init__.py', doraise=True)" ``` ### Running Project Checks The earlier failure was caused by PEP 668 protection. To bypass it, add `--break-system-packages` to the `pip install` commands. The full verification sequence is: ```bash pip install --break-system-packages -e '.[dev]' -q && make test-unit pip install --break-system-packages -q ruff && ruff check . ``` If the environment does not support `--break-system-packages`, alternatively set `PIP_REQUIRE_VIRTUALENV=0` before each pip call. ### Definition of Done - [ ] The six deletions (or one edit) have been applied exactly as specified. - [ ] Both modified files compile without syntax errors (`python3 -c "import py_compile; ..."` succeeds). - [ ] A grep for `BUG_TABLE_RENAMES` and `migrate_bug_tables_to_issue_tables` across the entire project returns zero results (excluding any backup files or comments that might remain, but there should be none). - [ ] The unit test suite passes: `pip install --break-system-packages -e '.[dev]' -q && make test-unit` exits with code 0. - [ ] The linter passes: `pip install --break-system-packages -q ruff && ruff check .` exits with code 0. - [ ] No other files have been changed (verified via `git diff --stat` or equivalent).