2020-05-26 15:52:44 +00:00
|
|
|
# Generated by Django 3.0.3 on 2020-05-26 15:35
|
|
|
|
|
|
|
|
import django.core.validators
|
|
|
|
from django.db import migrations, models
|
|
|
|
import django.db.models.deletion
|
2020-06-16 14:12:44 +00:00
|
|
|
import django_etebase.models
|
2020-05-26 15:52:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
|
|
|
|
dependencies = [
|
2020-11-14 15:04:41 +00:00
|
|
|
("django_etebase", "0007_auto_20200526_1336"),
|
2020-05-26 15:52:44 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
operations = [
|
|
|
|
migrations.CreateModel(
|
2020-11-14 15:04:41 +00:00
|
|
|
name="Stoken",
|
2020-05-26 15:52:44 +00:00
|
|
|
fields=[
|
2020-11-14 15:04:41 +00:00
|
|
|
("id", models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name="ID")),
|
|
|
|
(
|
|
|
|
"uid",
|
|
|
|
models.CharField(
|
|
|
|
db_index=True,
|
|
|
|
default=django_etebase.models.generate_stoken_uid,
|
|
|
|
max_length=43,
|
|
|
|
unique=True,
|
|
|
|
validators=[
|
|
|
|
django.core.validators.RegexValidator(
|
|
|
|
message="Expected a base64url.", regex="^[a-zA-Z0-9\\-_]{42,43}$"
|
|
|
|
)
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
2020-05-26 15:52:44 +00:00
|
|
|
],
|
|
|
|
),
|
|
|
|
migrations.AddField(
|
2020-11-14 15:04:41 +00:00
|
|
|
model_name="collectionitemrevision",
|
|
|
|
name="stoken",
|
|
|
|
field=models.OneToOneField(
|
|
|
|
null=True, on_delete=django.db.models.deletion.PROTECT, to="django_etebase.Stoken"
|
|
|
|
),
|
2020-05-26 15:52:44 +00:00
|
|
|
),
|
|
|
|
]
|