@opengis/fastify-table 1.0.55 → 1.0.56
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/Changelog.md
CHANGED
package/package.json
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
create schema if not exists log;
|
|
2
|
+
|
|
1
3
|
CREATE TABLE IF NOT EXISTS log.table_changes();
|
|
2
4
|
ALTER TABLE log.table_changes DROP CONSTRAINT IF EXISTS log_table_changes_pkey;
|
|
3
5
|
ALTER TABLE log.table_changes ADD COLUMN IF NOT EXISTS table_change_id text NOT NULL DEFAULT next_id();
|
|
@@ -3,7 +3,8 @@ import getSelectVal from './getSelectVal.js';
|
|
|
3
3
|
|
|
4
4
|
export default async function metaFormat({ rows, table }) {
|
|
5
5
|
const loadTable = await getTemplate('table', table);
|
|
6
|
-
const selectCols = loadTable
|
|
6
|
+
const selectCols = loadTable?.columns?.filter((e) => e.data);
|
|
7
|
+
if (!selectCols?.length) return rows;
|
|
7
8
|
|
|
8
9
|
// cls & select format
|
|
9
10
|
|