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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user