mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
ci: Simplify DB truncate in tests (no-changelog) (#5243)
This commit is contained in:
committed by
GitHub
parent
0c70a40317
commit
ac460aa841
@@ -47,16 +47,6 @@ export const ROUTES_REQUIRING_AUTHORIZATION: Readonly<string[]> = [
|
||||
'POST /owner/skip-setup',
|
||||
];
|
||||
|
||||
/**
|
||||
* Mapping tables link entities but, unlike `SharedWorkflow` and `SharedCredentials`,
|
||||
* have no entity representation. Therefore, mapping tables must be cleared
|
||||
* on truncation of any of the collections they link.
|
||||
*/
|
||||
export const MAPPING_TABLES_TO_CLEAR: Record<string, string[] | undefined> = {
|
||||
Workflow: ['workflows_tags'],
|
||||
Tag: ['workflows_tags'],
|
||||
};
|
||||
|
||||
export const COMMUNITY_PACKAGE_VERSION = {
|
||||
CURRENT: '0.1.0',
|
||||
UPDATED: '0.2.0',
|
||||
@@ -71,10 +61,3 @@ export const COMMUNITY_NODE_VERSION = {
|
||||
* Timeout (in milliseconds) to account for DB being slow to initialize.
|
||||
*/
|
||||
export const DB_INITIALIZATION_TIMEOUT = 30_000;
|
||||
|
||||
/**
|
||||
* Mapping tables having no entity representation.
|
||||
*/
|
||||
export const MAPPING_TABLES = {
|
||||
WorkflowsTags: 'workflows_tags',
|
||||
} as const;
|
||||
|
||||
Reference in New Issue
Block a user