new(core.gbapp): LLM alerts for data.
This commit is contained in:
parent
64c26632dd
commit
0c1c8788b8
2 changed files with 7 additions and 1 deletions
|
@ -415,6 +415,12 @@ export class GBVMService extends GBService {
|
||||||
});
|
});
|
||||||
|
|
||||||
sync = sync ? sync : !found;
|
sync = sync ? sync : !found;
|
||||||
|
|
||||||
|
// Do not erase tables in case of an error in collection retrieval.
|
||||||
|
|
||||||
|
if (tables.length === 0){
|
||||||
|
sync = false;
|
||||||
|
}
|
||||||
|
|
||||||
associations.forEach(e => {
|
associations.forEach(e => {
|
||||||
const from = seq.models[e.from];
|
const from = seq.models[e.from];
|
||||||
|
|
|
@ -2912,7 +2912,7 @@ export class SystemKeywords {
|
||||||
const dialect = con.dialect.name;
|
const dialect = con.dialect.name;
|
||||||
|
|
||||||
// Step 3: Get the list of all tables from the source database
|
// Step 3: Get the list of all tables from the source database
|
||||||
const tables = await GBUtil.listTables(dialect, min.core.sequelize);
|
const tables = await GBUtil.listTables(dialect, con);
|
||||||
|
|
||||||
// Function to map source database datatypes to SQLite-compatible datatypes
|
// Function to map source database datatypes to SQLite-compatible datatypes
|
||||||
const mapToSQLiteType = (columnType) => {
|
const mapToSQLiteType = (columnType) => {
|
||||||
|
|
Loading…
Add table
Reference in a new issue