cmsmanage/membershipworks/migrations/0003_transaction_unique_sid_timestamp.py
Adam Goldsmith 62e48c6e6f
All checks were successful
Ruff / ruff (push) Successful in 29s
Test / test (push) Successful in 3m9s
membershipworks: Use bulk upsert when scraping transactions
Instead of trying to do fiddly things with relative times, which turns
out not to work very well. This will break if anyone changes the sid
or timestamp of a transaction though (because of course
MembershipWorks allows editing those).
2024-09-02 12:50:08 -04:00

19 lines
477 B
Python

# Generated by Django 5.1 on 2024-09-02 16:29
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("membershipworks", "0002_historical_member_and_flags"),
]
operations = [
migrations.AddConstraint(
model_name="transaction",
constraint=models.UniqueConstraint(
models.F("sid"), models.F("timestamp"), name="unique_sid_timestamp"
),
),
]