Updates
This commit is contained in:
@@ -67,6 +67,10 @@ export default async function checkDbRecordCreateDbSchema({
|
||||
|
||||
return recordedDbEntry;
|
||||
} catch (error) {
|
||||
global.ERROR_CALLBACK?.(
|
||||
`Error Checking DB Record on Creating Schema`,
|
||||
error as Error
|
||||
);
|
||||
return undefined;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -110,6 +110,10 @@ export default async function checkTableRecordCreateDbSchema({
|
||||
|
||||
return recordedTableEntry;
|
||||
} catch (error) {
|
||||
global.ERROR_CALLBACK?.(
|
||||
`Error Checking Table Record on Creating Schema`,
|
||||
error as Error
|
||||
);
|
||||
return undefined;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -42,6 +42,11 @@ export default async function handleIndexescreateDbFromSchema({
|
||||
if (!existingKeyInDb[0])
|
||||
throw new Error("This Index Does not Exist");
|
||||
} catch (error) {
|
||||
global.ERROR_CALLBACK?.(
|
||||
`Error Handling Indexes on Creating Schema`,
|
||||
error as Error
|
||||
);
|
||||
|
||||
/**
|
||||
* @description Create new index if determined that it
|
||||
* doesn't exist in MYSQL db
|
||||
|
||||
Reference in New Issue
Block a user