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

Squash Django migrations (step 1) #8701

Merged
merged 2 commits into from
Jan 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
152 changes: 152 additions & 0 deletions cfgov/ask_cfpb/migrations/0001_2024_squash.py

Large diffs are not rendered by default.

128 changes: 128 additions & 0 deletions cfgov/filing_instruction_guide/migrations/0001_2024_squash.py

Large diffs are not rendered by default.

56 changes: 56 additions & 0 deletions cfgov/form_explainer/migrations/0001_2024_squash.py

Large diffs are not rendered by default.

237 changes: 237 additions & 0 deletions cfgov/paying_for_college/migrations/0001_2024_squash.py

Large diffs are not rendered by default.

178 changes: 178 additions & 0 deletions cfgov/regulations3k/migrations/0001_2024_squash.py

Large diffs are not rendered by default.

183 changes: 183 additions & 0 deletions cfgov/tccp/migrations/0001_2024_squash.py

Large diffs are not rendered by default.

267 changes: 267 additions & 0 deletions cfgov/teachers_digital_platform/migrations/0001_2024_squash.py

Large diffs are not rendered by default.

801 changes: 801 additions & 0 deletions cfgov/v1/migrations/0001_2024_squash.py

Large diffs are not rendered by default.

640 changes: 640 additions & 0 deletions cfgov/v1/migrations/0018_2024_squash.py

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions cfgov/v1/util/migrations.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
import logging
import re

from django.utils.deconstruct import deconstructible

from wagtail.blocks.migrations.operations import BaseBlockOperation


logger = logging.getLogger(__name__)


@deconstructible
class RegexAlterBlockValueOperation(BaseBlockOperation):
"""Alter a block's value with a regex pattern and replacement"""

Expand Down
2 changes: 1 addition & 1 deletion docs/migrations.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ additionally, changing field names or types on an existing block will require a
1. [Schema migrations](#schema-migrations)
1. [Data migrations](#data-migrations)
1. [Wagtail-specific consideration](#wagtail-specific-considerations)
1. [Recreating migrations](#recreating-migrations)
1. [Squashing migrations](#squashing-migrations)

## Reference material

Expand Down
Loading