feat: integrate image_make with MindSpace assets
This commit is contained in:
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user