优化代码

dependabot/npm_and_yarn/fir_admin/ws-5.2.3
youngS 3 years ago
parent 4e3af4de35
commit 8c1ca01532
  1. 22
      fir_ser/api/migrations/0004_auto_20210705_1819.py
  2. 4
      fir_ser/api/models.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版本'),
),
]

@ -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="应用可安装的最低系统版本")

Loading…
Cancel
Save