Adam Goldsmith
62e48c6e6f
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).
19 lines
477 B
Python
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"
|
|
),
|
|
),
|
|
]
|