mirror of
https://github.com/etesync/server
synced 2024-11-29 20:18:07 +00:00
baa42d040d
This enables us to have db-constraints for making sure that UIDs are unique, as well as being more efficient for lookups (which are very common). The UID should always be the same as the main_item.uid, though that's easily enforced as neither of them is allowed to change.
20 lines
563 B
Python
20 lines
563 B
Python
# Generated by Django 3.1.1 on 2020-12-14 11:28
|
|
|
|
import django.core.validators
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('django_etebase', '0035_auto_20201214_1126'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.AlterField(
|
|
model_name='collection',
|
|
name='uid',
|
|
field=models.CharField(db_index=True, max_length=43, unique=True, validators=[django.core.validators.RegexValidator(message='Not a valid UID', regex='^[a-zA-Z0-9\\-_]{20,}$')]),
|
|
),
|
|
]
|