You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
1.0 KiB
Python
29 lines
1.0 KiB
Python
5 years ago
|
# 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
|
||
4 years ago
|
import django_etebase.models
|
||
5 years ago
|
|
||
|
|
||
|
class Migration(migrations.Migration):
|
||
|
|
||
|
dependencies = [
|
||
4 years ago
|
('django_etebase', '0007_auto_20200526_1336'),
|
||
5 years ago
|
]
|
||
|
|
||
|
operations = [
|
||
|
migrations.CreateModel(
|
||
|
name='Stoken',
|
||
|
fields=[
|
||
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||
4 years ago
|
('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}$')])),
|
||
5 years ago
|
],
|
||
|
),
|
||
|
migrations.AddField(
|
||
|
model_name='collectionitemrevision',
|
||
|
name='stoken',
|
||
4 years ago
|
field=models.OneToOneField(null=True, on_delete=django.db.models.deletion.PROTECT, to='django_etebase.Stoken'),
|
||
5 years ago
|
),
|
||
|
]
|