Skip to content

fix libyear column typo - #469

Draft
MoralCode wants to merge 6 commits into
mainfrom
shlokgilda/fix/issue-2662-libyear-column-typo
Draft

MoralCode wants to merge 6 commits into
mainfrom
shlokgilda/fix/issue-2662-libyear-column-typo

Conversation

@MoralCode

@MoralCode MoralCode commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

Note

This PR was ported from augurlabs/augur#3482 filed by @shlokgilda because the contribution was deemed to still be useful.

Description

  • Renames misspelled current_verion column to current_version in repo_deps_libyear table
  • Adds Alembic migration (rev 45) that drops/recreates the explorer_libyear_detail materialized view
  • Updates ORM model, task code, and all schema files for consistency

This PR fixes #29

Notes for Reviewers
renaming wont require temp tables and data copying as this isn't necessary for PostgreSQL - column renames are simple metadata operations (ALTER TABLE ... RENAME COLUMN). The only complexity is the materialized view that references the column, which we drop and recreate with the corrected name. No data copying involved.

Signed commits

  • Yes, I signed my commits.

AI Disclosure: Used Claude Code to write this PR draft, comments in the alembic migration and verify the migration.

shlokgilda and others added 6 commits September 14, 2026 14:12
Fixes #2662

The column 'current_verion' in repo_deps_libyear table was misspelled
(missing 's'). This commit:

- Adds Alembic migration (rev 38) to rename the column
- Drops and recreates explorer_libyear_detail materialized view
- Updates ORM model, task code, and all schema files for consistency

Note: PostgreSQL supports simple column renames via ALTER TABLE,
so no temp tables or data copying is needed.

Signed-off-by: Shlok Gilda <gildashlok@hotmail.com>
Signed-off-by: Shlok Gilda <gildashlok@hotmail.com>
Old migrations should be immutable - the typo fix belongs only in
migration 38, not in historical migrations 1 and 4.

Signed-off-by: Shlok Gilda <gildashlok@hotmail.com>
The explorer_libyear_detail view was dropped in migration 25,
so no view manipulation is needed - just rename the column.

Signed-off-by: Shlok Gilda <gildashlok@hotmail.com>
@MoralCode

MoralCode commented Sep 14, 2026

Copy link
Copy Markdown
Contributor Author
  • materialized view needs checking here
  • needs check for any legacy variable/project names

@MoralCode MoralCode added this to the v1.1 Migration Release milestone Sep 14, 2026
@MoralCode MoralCode changed the title libyear column typo fix libyear column typo Sep 14, 2026
@MoralCode MoralCode added database Related to the unifed data model/schema waiting This change is waiting for some other changes to land first labels Sep 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

database Related to the unifed data model/schema waiting This change is waiting for some other changes to land first

Projects

None yet

Development

Successfully merging this pull request may close these issues.

repo_deps_libyear column name misspelled

2 participants