23 lines
768 B
Python
23 lines
768 B
Python
# Generated by Django 5.2.17 on 2026-08-19 10:10
|
|
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('content', '0002_nodeprogress'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.AddField(
|
|
model_name='userlessoncompletion',
|
|
name='idempotency_key',
|
|
field=models.CharField(blank=True, max_length=100, null=True),
|
|
),
|
|
migrations.AddConstraint(
|
|
model_name='userlessoncompletion',
|
|
constraint=models.UniqueConstraint(condition=models.Q(('idempotency_key__isnull', False), models.Q(('idempotency_key', ''), _negated=True)), fields=('user_id', 'lesson', 'idempotency_key'), name='uniq_lesson_completion_idempotency_key'),
|
|
),
|
|
]
|