PICK SEA slot interaction: polarity card bg/border, cross-slot opacity fix, two-step tap; _hideOk ReferenceError removed from sea.js; Jasmine spec updated for two-step; migration 0012 PENTACLES cleanup — TDD
Code architected by Disco DeDisco <discodedisco@outlook.com> Git commit message Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
27
src/apps/epic/migrations/0012_delete_stray_pentacles.py
Normal file
27
src/apps/epic/migrations/0012_delete_stray_pentacles.py
Normal file
@@ -0,0 +1,27 @@
|
||||
"""Delete 4 stray PENTACLES court cards from the Earthman deck.
|
||||
|
||||
These survived the migration collapse; the Earthman deck uses
|
||||
BRANDS/GRAILS/BLADES/CROWNS only.
|
||||
"""
|
||||
from django.db import migrations
|
||||
|
||||
|
||||
def delete_pentacles(apps, schema_editor):
|
||||
TarotCard = apps.get_model("epic", "TarotCard")
|
||||
DeckVariant = apps.get_model("epic", "DeckVariant")
|
||||
try:
|
||||
earthman = DeckVariant.objects.get(slug="earthman")
|
||||
except DeckVariant.DoesNotExist:
|
||||
return
|
||||
TarotCard.objects.filter(deck_variant=earthman, suit="PENTACLES").delete()
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
("epic", "0011_nomad_schizo_icons"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RunPython(delete_pentacles, reverse_code=migrations.RunPython.noop),
|
||||
]
|
||||
Reference in New Issue
Block a user