@budibase/server 2.7.27 → 2.7.29
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/builder/assets/{index.90a1e36e.js → index.062f84ed.js} +269 -269
- package/builder/index.html +1 -1
- package/dist/automation.js +10 -0
- package/dist/automation.js.map +2 -2
- package/dist/index.js +10 -0
- package/dist/index.js.map +3 -3
- package/dist/query.js +1 -0
- package/dist/query.js.map +2 -2
- package/package.json +8 -8
- package/src/api/controllers/row/utils.ts +13 -2
package/builder/index.html
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
<link href="/builder/fonts/source-sans-pro/600.css" rel="stylesheet" />
|
|
10
10
|
<link href="/builder/fonts/source-sans-pro/700.css" rel="stylesheet" />
|
|
11
11
|
<link href="/builder/fonts/remixicon.css" rel="stylesheet" />
|
|
12
|
-
<script type="module" crossorigin src="/builder/assets/index.
|
|
12
|
+
<script type="module" crossorigin src="/builder/assets/index.062f84ed.js"></script>
|
|
13
13
|
<link rel="stylesheet" href="/builder/assets/index.d9b46807.css">
|
|
14
14
|
</head>
|
|
15
15
|
|
package/dist/automation.js
CHANGED
|
@@ -26295,6 +26295,12 @@ __export(utils_exports9, {
|
|
|
26295
26295
|
getTableId: () => getTableId,
|
|
26296
26296
|
validate: () => validate3
|
|
26297
26297
|
});
|
|
26298
|
+
function isForeignKey(key, table) {
|
|
26299
|
+
const relationships = Object.values(table.schema).filter(
|
|
26300
|
+
(column) => column.type === "link" /* LINK */
|
|
26301
|
+
);
|
|
26302
|
+
return relationships.some((relationship) => relationship.foreignKey === key);
|
|
26303
|
+
}
|
|
26298
26304
|
async function getDatasourceAndQuery(json2) {
|
|
26299
26305
|
const datasourceId = json2.endpoint.datasourceId;
|
|
26300
26306
|
const datasource2 = await sdk_default.datasources.get(datasourceId);
|
|
@@ -26333,6 +26339,9 @@ async function validate3({
|
|
|
26333
26339
|
const column = fetchedTable.schema[fieldName];
|
|
26334
26340
|
const constraints = cloneDeep6(column.constraints);
|
|
26335
26341
|
const type = column.type;
|
|
26342
|
+
if (isForeignKey(fieldName, fetchedTable)) {
|
|
26343
|
+
continue;
|
|
26344
|
+
}
|
|
26336
26345
|
if (type === "formula" /* FORMULA */ || column.autocolumn) {
|
|
26337
26346
|
continue;
|
|
26338
26347
|
}
|
|
@@ -26417,6 +26426,7 @@ var init_utils20 = __esm({
|
|
|
26417
26426
|
init_constants6();
|
|
26418
26427
|
init_src2();
|
|
26419
26428
|
init_query4();
|
|
26429
|
+
init_src();
|
|
26420
26430
|
init_exporters();
|
|
26421
26431
|
init_sdk3();
|
|
26422
26432
|
validateJs = require("validate.js");
|