Keep artifact list and beta queries free of file bytes
This commit is contained in:
@@ -35,7 +35,7 @@ it('covers every foreign key child prefix, including lazy host and library schem
|
||||
const prefixes = indexes.filter(index => !index.partial).map(index =>
|
||||
(handle.pragma(`index_info(${index.name})`) as { name: string }[])[0]?.name);
|
||||
const columns = handle.pragma(`table_info(${name})`) as { name: string; type: string; pk: number }[];
|
||||
if (columns.filter(column => column.pk).length === 1) prefixes.push(columns.find(column => column.pk)?.name);
|
||||
if (columns.filter(column => column.pk).length === 1) prefixes.push(columns.find(column => column.pk)!.name);
|
||||
for (const key of foreignKeys.filter(key => key.seq === 0)) {
|
||||
if (!prefixes.includes(key.from)) missing.push(`${name}.${key.from}`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user