Shifted the budibase datasource constant to backend-core

This commit is contained in:
Dean 2022-11-17 16:28:48 +00:00
parent 8657aaf922
commit e932aa105b
5 changed files with 5 additions and 9 deletions

View File

@ -42,3 +42,4 @@ exports.Configs = {
exports.MAX_VALID_DATE = new Date(2147483647000) exports.MAX_VALID_DATE = new Date(2147483647000)
exports.DEFAULT_TENANT_ID = "default" exports.DEFAULT_TENANT_ID = "default"
exports.BUDIBASE_DATASOURCE_TYPE = "budibase"

View File

@ -7,16 +7,13 @@ const {
getTableParams, getTableParams,
} = require("../../db/utils") } = require("../../db/utils")
const { destroy: tableDestroy } = require("./table/internal") const { destroy: tableDestroy } = require("./table/internal")
const { const { BuildSchemaErrors, InvalidColumns } = require("../../constants")
BuildSchemaErrors,
InvalidColumns,
BUDIBASE_DATASOURCE_TYPE,
} = require("../../constants")
const { getIntegration } = require("../../integrations") const { getIntegration } = require("../../integrations")
const { getDatasourceAndQuery } = require("./row/utils") const { getDatasourceAndQuery } = require("./row/utils")
const { invalidateDynamicVariables } = require("../../threads/utils") const { invalidateDynamicVariables } = require("../../threads/utils")
const { getAppDB } = require("@budibase/backend-core/context") const { getAppDB } = require("@budibase/backend-core/context")
const { events } = require("@budibase/backend-core") const { events } = require("@budibase/backend-core")
const { BUDIBASE_DATASOURCE_TYPE } = require("@budibase/backend-core/constants")
exports.fetch = async function (ctx) { exports.fetch = async function (ctx) {
// Get internal tables // Get internal tables

View File

@ -89,8 +89,6 @@ exports.DatasourceAuthTypes = {
GOOGLE: "google", GOOGLE: "google",
} }
exports.BUDIBASE_DATASOURCE_TYPE = "budibase"
exports.SortDirection = { exports.SortDirection = {
ASCENDING: "ASCENDING", ASCENDING: "ASCENDING",
DESCENDING: "DESCENDING", DESCENDING: "DESCENDING",

View File

@ -10,7 +10,7 @@ const { inventoryImport } = require("./inventoryImport")
const { employeeImport } = require("./employeeImport") const { employeeImport } = require("./employeeImport")
const { jobsImport } = require("./jobsImport") const { jobsImport } = require("./jobsImport")
const { expensesImport } = require("./expensesImport") const { expensesImport } = require("./expensesImport")
const { BUDIBASE_DATASOURCE_TYPE } = require("../../constants") const { BUDIBASE_DATASOURCE_TYPE } = require("@budibase/backend-core/constants")
exports.DEFAULT_JOBS_TABLE_ID = "ta_bb_jobs" exports.DEFAULT_JOBS_TABLE_ID = "ta_bb_jobs"
exports.DEFAULT_INVENTORY_TABLE_ID = "ta_bb_inventory" exports.DEFAULT_INVENTORY_TABLE_ID = "ta_bb_inventory"

View File

@ -22,7 +22,7 @@ const {
getGlobalIDFromUserMetadataID, getGlobalIDFromUserMetadataID,
} = require("@budibase/backend-core/db") } = require("@budibase/backend-core/db")
const { BUDIBASE_DATASOURCE_TYPE } = require("../constants") const { BUDIBASE_DATASOURCE_TYPE } = require("@budibase/backend-core/constants")
const UNICODE_MAX = "\ufff0" const UNICODE_MAX = "\ufff0"