forked from erp-dev/erp
feat: batch update for plate order
This commit is contained in:
21
api_v1/migrations/0005_mdy_plate_order_staging_related.py
Normal file
21
api_v1/migrations/0005_mdy_plate_order_staging_related.py
Normal file
@@ -0,0 +1,21 @@
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('api_v1', '0004_mdy_plate_order_staging'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='mdyplateorderstaging',
|
||||
name='related',
|
||||
field=models.JSONField(
|
||||
blank=True,
|
||||
default=list,
|
||||
help_text='开版相关跨表数据(碾平 list[dict]),用于排查与后续属性化提取',
|
||||
verbose_name='关联表数据',
|
||||
),
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,19 @@
|
||||
from django.db import migrations, models
|
||||
from django.db.models.fields.json import KeyTextTransform
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('api_v1', '0005_mdy_plate_order_staging_related'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddIndex(
|
||||
model_name='mdyplateorderstaging',
|
||||
index=models.Index(
|
||||
KeyTextTransform('62d52f4b8d2972284492dd0e', 'raw'),
|
||||
name='api_mdy_po_raw_id_idx',
|
||||
),
|
||||
),
|
||||
]
|
||||
@@ -0,0 +1,33 @@
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('api_v1', '0006_mdy_plate_order_staging_raw_id_index'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='mdyplateorderstaging',
|
||||
name='ctime',
|
||||
field=models.DateTimeField(
|
||||
blank=True,
|
||||
db_index=True,
|
||||
help_text='明道云系统字段 ctime(用于排序/增量定位)',
|
||||
null=True,
|
||||
verbose_name='明道云创建时间',
|
||||
),
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name='mdyplateorderstaging',
|
||||
name='utime',
|
||||
field=models.DateTimeField(
|
||||
blank=True,
|
||||
db_index=True,
|
||||
help_text='明道云系统字段 utime(用于排序/增量定位)',
|
||||
null=True,
|
||||
verbose_name='明道云更新时间',
|
||||
),
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user