Display comments into TABLES and COLUMNS lists #755

This commit is contained in:
SPRINX0\prochazka
2024-12-16 09:46:07 +01:00
parent f5a2d142e2
commit dc302f89c7
3 changed files with 19 additions and 2 deletions

View File

@@ -35,7 +35,21 @@
];
}
$: extInfo = data.foreignKey ? `${data.dataType} -> ${data.foreignKey.refTableName}` : data.dataType;
function getExtInfo(data) {
const res = [];
if (data.foreignKey) {
res.push(`${data.dataType} -> ${data.foreignKey.refTableName}`);
} else {
res.push(data.dataType);
}
if (data.columnComment) {
res.push(data.columnComment);
}
if (res.length > 0) return res.join(', ');
return null;
}
$: extInfo = getExtInfo(data);
</script>
<AppObjectCore

View File

@@ -932,6 +932,9 @@
function getExtInfo(data) {
const res = [];
if (data.objectComment) {
res.push(data.objectComment);
}
if (data.tableRowCount != null) {
res.push(`${formatRowCount(data.tableRowCount)} rows`);
}