Skip to content

Commit 33a019c

Browse files
author
lrhh123
committed
fix: 上下文默认值
1 parent 41f0a6c commit 33a019c

File tree

5 files changed

+22
-648
lines changed

5 files changed

+22
-648
lines changed

src/main/backend/entities/plugin.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,13 @@ export async function checkAndAddFields(sequelize: Sequelize) {
8989
defaultValue: '插件标题',
9090
});
9191
}
92+
93+
// 再更新字段的默认版本号
94+
await sequelize.getQueryInterface().changeColumn('plugins', 'version', {
95+
type: DataTypes.STRING(255),
96+
defaultValue: '1.2.0',
97+
allowNull: true,
98+
});
9299
}
93100

94101
export function initPlugin(sequelize: Sequelize) {

src/renderer/settings-window/components/MessageModal/index.tsx

Lines changed: 0 additions & 250 deletions
This file was deleted.

0 commit comments

Comments
 (0)