Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LCFS - Squash Latest Migrations #1690

Closed
4 tasks
AlexZorkin opened this issue Jan 14, 2025 · 0 comments
Closed
4 tasks

LCFS - Squash Latest Migrations #1690

AlexZorkin opened this issue Jan 14, 2025 · 0 comments
Assignees
Labels
Medium Medium priority Task Work that does not directly impact the user Tested :) Testing passed

Comments

@AlexZorkin
Copy link
Collaborator

Description:
Squash existing migrations using SQLAlchemy and Alembic, ensuring all materialized views are preserved. Review and pull the latest versions of each materialized view, then consolidate migrations into two—one for models and one for materialized views.

Purpose:
To simplify the migration process by reducing the number of migrations ensuring materialized views are retained and correctly handled, as an automated squash will not account for these views.

Acceptance Criteria:

  • Review all migrations to identify the latest versions of each materialized view.
  • Combine and squash all standard models into one migration.
  • Move all materialized views into a second migration.
  • Ensure no data or schema integrity is lost during the squash.

Additional context:

  • SQLAlchemy and Alembic are used for migrations.
  • The materialized views require special attention as they won't be automatically squashed.
  • This squash is part of a larger effort to streamline the migration history and improve manageability.
@AlexZorkin AlexZorkin added Medium Medium priority Task Work that does not directly impact the user labels Jan 14, 2025
@AlexZorkin AlexZorkin self-assigned this Jan 14, 2025
@Grulin Grulin added the Tested :) Testing passed label Jan 22, 2025
@Grulin Grulin closed this as completed Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Medium Medium priority Task Work that does not directly impact the user Tested :) Testing passed
Projects
None yet
Development

No branches or pull requests

2 participants