|
|
@ -4,13 +4,13 @@ import Project from '../../../src/lib/models/Project'; |
|
|
|
const sakilaProjectConfig = (context) => { |
|
|
|
const sakilaProjectConfig = (context) => { |
|
|
|
let base; |
|
|
|
let base; |
|
|
|
|
|
|
|
|
|
|
|
if(context.sakilaDbConfig.client === 'mysql2'){ |
|
|
|
if (context.sakilaDbConfig.client === 'mysql2') { |
|
|
|
base = { |
|
|
|
base = { |
|
|
|
type: context.sakilaDbConfig.client, |
|
|
|
type: context.sakilaDbConfig.client, |
|
|
|
config: { |
|
|
|
config: { |
|
|
|
client: context.sakilaDbConfig.client, |
|
|
|
client: context.sakilaDbConfig.client, |
|
|
|
connection: context.sakilaDbConfig.connection |
|
|
|
connection: context.sakilaDbConfig.connection, |
|
|
|
} |
|
|
|
}, |
|
|
|
}; |
|
|
|
}; |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
base = { |
|
|
|
base = { |
|
|
@ -35,7 +35,7 @@ const sakilaProjectConfig = (context) => { |
|
|
|
title: 'sakila', |
|
|
|
title: 'sakila', |
|
|
|
bases: [base], |
|
|
|
bases: [base], |
|
|
|
external: true, |
|
|
|
external: true, |
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
const defaultProjectValue = { |
|
|
|
const defaultProjectValue = { |
|
|
@ -44,7 +44,7 @@ const defaultProjectValue = { |
|
|
|
|
|
|
|
|
|
|
|
const defaultSharedBaseValue = { |
|
|
|
const defaultSharedBaseValue = { |
|
|
|
roles: 'viewer', |
|
|
|
roles: 'viewer', |
|
|
|
password: 'test', |
|
|
|
password: 'password123', |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
const createSharedBase = async (app, token, project, sharedBaseArgs = {}) => { |
|
|
|
const createSharedBase = async (app, token, project, sharedBaseArgs = {}) => { |
|
|
|