Shifted the budibase datasource constant to backend-core
This commit is contained in:
parent
5845a17511
commit
2d81f516e0
|
@ -42,3 +42,4 @@ exports.Configs = {
|
|||
|
||||
exports.MAX_VALID_DATE = new Date(2147483647000)
|
||||
exports.DEFAULT_TENANT_ID = "default"
|
||||
exports.BUDIBASE_DATASOURCE_TYPE = "budibase"
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -89,8 +89,6 @@ exports.DatasourceAuthTypes = {
|
|||
GOOGLE: "google",
|
||||
}
|
||||
|
||||
exports.BUDIBASE_DATASOURCE_TYPE = "budibase"
|
||||
|
||||
exports.SortDirection = {
|
||||
ASCENDING: "ASCENDING",
|
||||
DESCENDING: "DESCENDING",
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
Loading…
Reference in New Issue