diff --git a/fir_ser/api/migrations/0004_auto_20210705_1819.py b/fir_ser/api/migrations/0004_auto_20210705_1819.py new file mode 100644 index 0000000..5ce63cf --- /dev/null +++ b/fir_ser/api/migrations/0004_auto_20210705_1819.py @@ -0,0 +1,22 @@ +# Generated by Django 3.2.3 on 2021-07-05 18:19 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + dependencies = [ + ('api', '0003_apps_new_bundle_name'), + ] + + operations = [ + migrations.AlterField( + model_name='appreleaseinfo', + name='app_version', + field=models.CharField(blank=True, max_length=64, verbose_name='app版本'), + ), + migrations.AlterField( + model_name='appreleaseinfo', + name='build_version', + field=models.CharField(blank=True, max_length=64, verbose_name='build版本'), + ), + ] diff --git a/fir_ser/api/models.py b/fir_ser/api/models.py index b42b1ce..7c0b904 100644 --- a/fir_ser/api/models.py +++ b/fir_ser/api/models.py @@ -155,8 +155,8 @@ class AppReleaseInfo(models.Model): is_master = models.BooleanField(verbose_name="是否master版本", default=True) release_id = models.CharField(max_length=64, unique=True, verbose_name="release 版本id", db_index=True) app_id = models.ForeignKey(to="Apps", on_delete=models.CASCADE, verbose_name="属于哪个APP") - build_version = models.CharField(max_length=16, verbose_name="build版本", blank=True) - app_version = models.CharField(max_length=16, verbose_name="app版本", blank=True) + build_version = models.CharField(max_length=64, verbose_name="build版本", blank=True) + app_version = models.CharField(max_length=64, verbose_name="app版本", blank=True) release_choices = ((0, 'android'), (1, 'adhoc'), (2, 'Inhouse'), (3, 'unknown')) release_type = models.SmallIntegerField(choices=release_choices, default=0, verbose_name="版本类型") minimum_os_version = models.CharField(max_length=64, verbose_name="应用可安装的最低系统版本")