2020-06-26 09:13:50 +00:00
|
|
|
# Generated by Django 3.0.3 on 2020-06-26 09:13
|
|
|
|
|
|
|
|
import django.core.validators
|
|
|
|
from django.db import migrations, models
|
2022-05-08 14:32:29 +00:00
|
|
|
from etebase_server.django.models import generate_stoken_uid
|
2020-06-26 09:13:50 +00:00
|
|
|
|
|
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
|
|
|
|
dependencies = [
|
2020-11-14 15:04:41 +00:00
|
|
|
("django_etebase", "0020_remove_collectionitemrevision_salt"),
|
2020-06-26 09:13:50 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
operations = [
|
|
|
|
migrations.AlterField(
|
2020-11-14 15:04:41 +00:00
|
|
|
model_name="collectioninvitation",
|
|
|
|
name="uid",
|
|
|
|
field=models.CharField(
|
|
|
|
db_index=True,
|
|
|
|
max_length=43,
|
|
|
|
validators=[
|
|
|
|
django.core.validators.RegexValidator(message="Not a valid UID", regex="^[a-zA-Z0-9\\-_]{20,}$")
|
|
|
|
],
|
|
|
|
),
|
2020-06-26 09:13:50 +00:00
|
|
|
),
|
|
|
|
migrations.AlterField(
|
2020-11-14 15:04:41 +00:00
|
|
|
model_name="collectionitem",
|
|
|
|
name="uid",
|
|
|
|
field=models.CharField(
|
|
|
|
db_index=True,
|
|
|
|
max_length=43,
|
|
|
|
validators=[
|
|
|
|
django.core.validators.RegexValidator(message="Not a valid UID", regex="^[a-zA-Z0-9\\-_]{20,}$")
|
|
|
|
],
|
|
|
|
),
|
2020-06-26 09:13:50 +00:00
|
|
|
),
|
|
|
|
migrations.AlterField(
|
2020-11-14 15:04:41 +00:00
|
|
|
model_name="collectionitemchunk",
|
|
|
|
name="uid",
|
|
|
|
field=models.CharField(
|
|
|
|
db_index=True,
|
|
|
|
max_length=60,
|
|
|
|
validators=[
|
|
|
|
django.core.validators.RegexValidator(message="Not a valid UID", regex="^[a-zA-Z0-9\\-_]{20,}$")
|
|
|
|
],
|
|
|
|
),
|
2020-06-26 09:13:50 +00:00
|
|
|
),
|
|
|
|
migrations.AlterField(
|
2020-11-14 15:04:41 +00:00
|
|
|
model_name="collectionitemrevision",
|
|
|
|
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,}$")
|
|
|
|
],
|
|
|
|
),
|
2020-06-26 09:13:50 +00:00
|
|
|
),
|
|
|
|
migrations.AlterField(
|
2020-11-14 15:04:41 +00:00
|
|
|
model_name="stoken",
|
|
|
|
name="uid",
|
|
|
|
field=models.CharField(
|
|
|
|
db_index=True,
|
2022-05-08 14:32:29 +00:00
|
|
|
default=generate_stoken_uid,
|
2020-11-14 15:04:41 +00:00
|
|
|
max_length=43,
|
|
|
|
unique=True,
|
|
|
|
validators=[
|
|
|
|
django.core.validators.RegexValidator(message="Not a valid UID", regex="^[a-zA-Z0-9\\-_]{20,}$")
|
|
|
|
],
|
|
|
|
),
|
2020-06-26 09:13:50 +00:00
|
|
|
),
|
|
|
|
]
|