feat: integrate image_make with MindSpace assets

This commit is contained in:
john
2026-07-19 18:34:50 +08:00
parent 2ce1527edd
commit 4959535b5e
14 changed files with 768 additions and 14 deletions
+6
View File
@@ -114,6 +114,7 @@ export async function ensureAssetGatewaySchema(pool) {
provider VARCHAR(64) NULL,
llm_provider_key_id CHAR(36) NULL,
llm_model VARCHAR(128) NULL,
config_json JSON NULL,
updated_by CHAR(36) NULL,
created_at BIGINT NOT NULL,
updated_at BIGINT NOT NULL,
@@ -123,6 +124,11 @@ export async function ensureAssetGatewaySchema(pool) {
REFERENCES h5_llm_provider_keys(id) ON DELETE SET NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci
`);
if (!(await columnExists(pool, 'h5_asset_plugin_configs', 'config_json'))) {
await pool.query(
'ALTER TABLE h5_asset_plugin_configs ADD COLUMN config_json JSON NULL AFTER llm_model',
);
}
}
/** Additive only: does not read, move, or mutate user page/data records. */