|
| 1 | +# Generated by Django 4.2.13 on 2024-07-15 22:05 |
| 2 | + |
| 3 | +from django.db import migrations, models |
| 4 | +from django_safemigrate import Safe |
| 5 | + |
| 6 | +import readthedocs.projects.validators |
| 7 | + |
| 8 | + |
| 9 | +class Migration(migrations.Migration): |
| 10 | + safe = Safe.before_deploy |
| 11 | + dependencies = [ |
| 12 | + ("projects", "0124_remove_zh_locale"), |
| 13 | + ] |
| 14 | + |
| 15 | + operations = [ |
| 16 | + migrations.AlterField( |
| 17 | + model_name="historicalproject", |
| 18 | + name="repo", |
| 19 | + field=models.CharField( |
| 20 | + db_index=True, |
| 21 | + help_text="Git repository URL", |
| 22 | + max_length=255, |
| 23 | + validators=[readthedocs.projects.validators.RepositoryURLValidator()], |
| 24 | + verbose_name="Repository URL", |
| 25 | + ), |
| 26 | + ), |
| 27 | + migrations.AlterField( |
| 28 | + model_name="historicalproject", |
| 29 | + name="versioning_scheme", |
| 30 | + field=models.CharField( |
| 31 | + choices=[ |
| 32 | + ( |
| 33 | + "multiple_versions_with_translations", |
| 34 | + "Multiple versions with translations (/<language>/<version>/<filename>)", |
| 35 | + ), |
| 36 | + ( |
| 37 | + "multiple_versions_without_translations", |
| 38 | + "Multiple versions without translations (/<version>/<filename>)", |
| 39 | + ), |
| 40 | + ( |
| 41 | + "single_version_without_translations", |
| 42 | + "Single version without translations (/<filename>)", |
| 43 | + ), |
| 44 | + ], |
| 45 | + default="multiple_versions_with_translations", |
| 46 | + help_text="This affects URL your documentation is served from, and if it supports translations or versions. Changing the versioning scheme will break your current URLs, so you might need to create a redirect.", |
| 47 | + max_length=120, |
| 48 | + null=True, |
| 49 | + verbose_name="URL versioning scheme", |
| 50 | + ), |
| 51 | + ), |
| 52 | + migrations.AlterField( |
| 53 | + model_name="project", |
| 54 | + name="repo", |
| 55 | + field=models.CharField( |
| 56 | + db_index=True, |
| 57 | + help_text="Git repository URL", |
| 58 | + max_length=255, |
| 59 | + validators=[readthedocs.projects.validators.RepositoryURLValidator()], |
| 60 | + verbose_name="Repository URL", |
| 61 | + ), |
| 62 | + ), |
| 63 | + migrations.AlterField( |
| 64 | + model_name="project", |
| 65 | + name="versioning_scheme", |
| 66 | + field=models.CharField( |
| 67 | + choices=[ |
| 68 | + ( |
| 69 | + "multiple_versions_with_translations", |
| 70 | + "Multiple versions with translations (/<language>/<version>/<filename>)", |
| 71 | + ), |
| 72 | + ( |
| 73 | + "multiple_versions_without_translations", |
| 74 | + "Multiple versions without translations (/<version>/<filename>)", |
| 75 | + ), |
| 76 | + ( |
| 77 | + "single_version_without_translations", |
| 78 | + "Single version without translations (/<filename>)", |
| 79 | + ), |
| 80 | + ], |
| 81 | + default="multiple_versions_with_translations", |
| 82 | + help_text="This affects URL your documentation is served from, and if it supports translations or versions. Changing the versioning scheme will break your current URLs, so you might need to create a redirect.", |
| 83 | + max_length=120, |
| 84 | + null=True, |
| 85 | + verbose_name="URL versioning scheme", |
| 86 | + ), |
| 87 | + ), |
| 88 | + ] |
0 commit comments