fix(数据库迁移): 将devices表的sourceType字段类型从TEXT改为VARCHAR(255)
This commit is contained in:
@@ -692,7 +692,7 @@ async function migrateIdleDeviceAndBusiness() {
|
||||
await addColumnIfNotExists('devices', 'idleDate', 'DATETIME');
|
||||
await addColumnIfNotExists('devices', 'idleReason', 'TEXT');
|
||||
await addColumnIfNotExists('devices', 'warehouseId', 'VARCHAR(255)');
|
||||
await addColumnIfNotExists('devices', 'sourceType', "TEXT DEFAULT 'rack'");
|
||||
await addColumnIfNotExists('devices', 'sourceType', "VARCHAR(255) DEFAULT 'rack'");
|
||||
}
|
||||
|
||||
console.log(' 空闲设备与业务关联迁移完成');
|
||||
|
||||
Reference in New Issue
Block a user