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.DEFAULT_TENANT_ID = "default"
exports.BUDIBASE_DATASOURCE_TYPE = "budibase"

View File

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

View File

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

View File

@ -10,7 +10,7 @@ const { inventoryImport } = require("./inventoryImport")
const { employeeImport } = require("./employeeImport")
const { jobsImport } = require("./jobsImport")
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_INVENTORY_TABLE_ID = "ta_bb_inventory"

View File

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