-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# Reviewed, transaction id: 16333
- Loading branch information
Showing
9 changed files
with
128 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
79 changes: 79 additions & 0 deletions
79
dbm-ui/backend/db_meta/migrations/0042_auto_20240823_1533.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
# Generated by Django 3.2.25 on 2024-08-23 07:33 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
("db_meta", "0041_auto_20240819_1031"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="cluster", | ||
name="tags", | ||
field=models.ManyToManyField(blank=True, help_text="标签(外键)", to="db_meta.Tag"), | ||
), | ||
migrations.AddField( | ||
model_name="tag", | ||
name="key", | ||
field=models.CharField(default="", help_text="标签键", max_length=64), | ||
), | ||
migrations.AddField( | ||
model_name="tag", | ||
name="value", | ||
field=models.CharField(default="", help_text="标签值", max_length=64), | ||
), | ||
migrations.AlterField( | ||
model_name="spec", | ||
name="cpu", | ||
field=models.JSONField(help_text='cpu规格描述:{"min":1,"max":10}', null=True), | ||
), | ||
migrations.AlterField( | ||
model_name="spec", | ||
name="device_class", | ||
field=models.JSONField(help_text='实际机器机型: ["class1","class2"]', null=True), | ||
), | ||
migrations.AlterField( | ||
model_name="spec", | ||
name="mem", | ||
field=models.JSONField(help_text='mem规格描述:{"min":100,"max":1000}', null=True), | ||
), | ||
migrations.AlterField( | ||
model_name="spec", | ||
name="qps", | ||
field=models.JSONField(default=dict, help_text='qps规格描述:{"min": 1, "max": 100}'), | ||
), | ||
migrations.AlterField( | ||
model_name="spec", | ||
name="storage_spec", | ||
field=models.JSONField(help_text='存储磁盘需求配置:[{"mount_point":"/data","size":500,"type":"ssd"}]', null=True), | ||
), | ||
migrations.AlterField( | ||
model_name="tag", | ||
name="bk_biz_id", | ||
field=models.IntegerField(default=0, help_text="业务 ID"), | ||
), | ||
migrations.AlterField( | ||
model_name="tag", | ||
name="type", | ||
field=models.CharField( | ||
choices=[("custom", "自定义标签"), ("system", "系统标签"), ("builtin", "内置标签")], | ||
help_text="tag类型", | ||
max_length=64, | ||
), | ||
), | ||
migrations.AlterUniqueTogether( | ||
name="tag", | ||
unique_together={("bk_biz_id", "key", "value")}, | ||
), | ||
migrations.RemoveField( | ||
model_name="tag", | ||
name="cluster", | ||
), | ||
migrations.RemoveField( | ||
model_name="tag", | ||
name="name", | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters