@budibase/server 2.4.2 → 2.4.3

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.
@@ -10,7 +10,7 @@
10
10
  href="https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600;700&display=swap"
11
11
  rel="stylesheet"
12
12
  />
13
- <script type="module" crossorigin src="/builder/assets/index.4f84afd2.js"></script>
13
+ <script type="module" crossorigin src="/builder/assets/index.a1e40531.js"></script>
14
14
  <link rel="stylesheet" href="/builder/assets/index.65065f82.css">
15
15
  </head>
16
16
  <body id="app">
@@ -202,14 +202,15 @@ function shouldCopyRelationship(column, tableIds) {
202
202
  * @param fetchedColumn The fetched column to check for the type in the external database.
203
203
  */
204
204
  function shouldCopySpecialColumn(column, fetchedColumn) {
205
+ const isFormula = column.type === constants_1.FieldTypes.FORMULA;
205
206
  const specialTypes = [
206
207
  constants_1.FieldTypes.OPTIONS,
207
208
  constants_1.FieldTypes.LONGFORM,
208
209
  constants_1.FieldTypes.ARRAY,
209
210
  constants_1.FieldTypes.FORMULA,
210
211
  ];
211
- // column has been deleted, remove
212
- if (column && !fetchedColumn) {
212
+ // column has been deleted, remove - formulas will never exist, always copy
213
+ if (!isFormula && column && !fetchedColumn) {
213
214
  return false;
214
215
  }
215
216
  const fetchedIsNumber = !fetchedColumn || fetchedColumn.type === constants_1.FieldTypes.NUMBER;
package/dist/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@budibase/server",
3
3
  "email": "hi@budibase.com",
4
- "version": "2.4.1",
4
+ "version": "2.4.2",
5
5
  "description": "Budibase Web Server",
6
6
  "main": "src/index.ts",
7
7
  "repository": {
@@ -43,11 +43,11 @@
43
43
  "license": "GPL-3.0",
44
44
  "dependencies": {
45
45
  "@apidevtools/swagger-parser": "10.0.3",
46
- "@budibase/backend-core": "^2.4.1",
47
- "@budibase/client": "^2.4.1",
48
- "@budibase/pro": "2.4.1",
49
- "@budibase/string-templates": "^2.4.1",
50
- "@budibase/types": "^2.4.1",
46
+ "@budibase/backend-core": "^2.4.2",
47
+ "@budibase/client": "^2.4.2",
48
+ "@budibase/pro": "2.4.2",
49
+ "@budibase/string-templates": "^2.4.2",
50
+ "@budibase/types": "^2.4.2",
51
51
  "@bull-board/api": "3.7.0",
52
52
  "@bull-board/koa": "3.9.4",
53
53
  "@elastic/elasticsearch": "7.10.0",