Skip to content

Commit

Permalink
Merge pull request #8701 from cfpb/feature/squash-migrations
Browse files Browse the repository at this point in the history
Squash Django migrations (step 1)
  • Loading branch information
chosak authored Jan 6, 2025
2 parents ed92a96 + df6b9a0 commit ed51559
Show file tree
Hide file tree
Showing 11 changed files with 2,646 additions and 1 deletion.
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

0 comments on commit ed51559

Please sign in to comment.