fix: 修复测试 schema 缺失字段,标记过时测试为 skip

- testutil/setup.go 补充 products.public_id、description,partners.status
- 过时 products/stock 流程测试标记 skip(provider 已不挂载)
- deploy.sh 补充 PUBLIC_URL dart-define

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
wangjia
2026-04-30 00:46:25 +08:00
parent 655c1d366e
commit f5c41e04f3
8 changed files with 24 additions and 16 deletions
+3
View File
@@ -105,6 +105,7 @@ func SetupTestDB() *gorm.DB {
updated_at DATETIME,
deleted_at DATETIME,
shop_id INTEGER NOT NULL,
public_id TEXT DEFAULT '',
code TEXT,
barcode TEXT,
name TEXT NOT NULL,
@@ -116,6 +117,7 @@ func SetupTestDB() *gorm.DB {
purchase_price REAL,
sale_price REAL,
min_stock INTEGER DEFAULT 0,
description TEXT,
custom_fields TEXT,
remark TEXT
)`,
@@ -139,6 +141,7 @@ func SetupTestDB() *gorm.DB {
code TEXT,
name TEXT NOT NULL,
type TEXT DEFAULT 'supplier',
status TEXT NOT NULL DEFAULT 'enabled',
contact TEXT,
phone TEXT,
address TEXT,