1
0
forked from erp-dev/erp

feat: added migrate for set id init value into 8000 of plate_order

This commit is contained in:
2025-11-20 13:01:44 +08:00
parent ad0b6a84d2
commit 6091280fdc
12 changed files with 931 additions and 606 deletions

View File

@@ -0,0 +1,18 @@
# Generated by Django 5.2.7 on 2025-11-20 03:44
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('printing', '0013_plateorder_fabric_source_alter_plateorder_process'),
]
operations = [
migrations.RunSQL(
# 设置序列从 80000 开始(或你想要的任何值)
sql="SELECT setval('printing_plateorder_id_seq', 80000, false);",
reverse_sql="SELECT setval('printing_plateorder_id_seq', 1, false);"
),
]