mirror of
https://github.com/Unleash/unleash.git
synced 2025-02-23 00:22:19 +01:00
parent
c5f5ea478e
commit
49a1dc0343
@ -1,5 +1,9 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## 3.1.6
|
||||||
|
|
||||||
|
- fix: Database migrator does use the databaseSchema option.
|
||||||
|
|
||||||
## 3.1.5
|
## 3.1.5
|
||||||
|
|
||||||
- feat(permission): Implement beta support for permissions.
|
- feat(permission): Implement beta support for permissions.
|
||||||
|
@ -27,6 +27,13 @@ const argv = require('yargs')
|
|||||||
'The full databaseUrl to connect to, including username and password',
|
'The full databaseUrl to connect to, including username and password',
|
||||||
demand: true,
|
demand: true,
|
||||||
type: 'string',
|
type: 'string',
|
||||||
|
})
|
||||||
|
.option('databaseSchema', {
|
||||||
|
alias: 's',
|
||||||
|
describe: 'The database schema to use',
|
||||||
|
default: 'public',
|
||||||
|
demand: false,
|
||||||
|
type: 'string',
|
||||||
}).argv;
|
}).argv;
|
||||||
|
|
||||||
serverImpl
|
serverImpl
|
||||||
|
@ -44,6 +44,7 @@ unleash
|
|||||||
Available unleash options includes:
|
Available unleash options includes:
|
||||||
|
|
||||||
- **databaseUrl** - the postgress database url to connect to. Should include username/password.
|
- **databaseUrl** - the postgress database url to connect to. Should include username/password.
|
||||||
|
- **databaseSchema** - the postgress database schema to use. Defaults to 'public'
|
||||||
- **port** - Which port should the unleash-server bind to?
|
- **port** - Which port should the unleash-server bind to?
|
||||||
- **enableLegacyRoutes** (boolean) - allows you to turn on/off support for legacy routes to support older clients. Enabled by default.
|
- **enableLegacyRoutes** (boolean) - allows you to turn on/off support for legacy routes to support older clients. Enabled by default.
|
||||||
- **serverMetrics** (boolean) - Use this option to turn off prometheus metrics.
|
- **serverMetrics** (boolean) - Use this option to turn off prometheus metrics.
|
||||||
|
@ -7,6 +7,7 @@ const THIRTY_DAYS = 30 * 24 * 60 * 60 * 1000;
|
|||||||
|
|
||||||
const DEFAULT_OPTIONS = {
|
const DEFAULT_OPTIONS = {
|
||||||
databaseUrl: process.env.DATABASE_URL,
|
databaseUrl: process.env.DATABASE_URL,
|
||||||
|
databaseSchema: 'another',
|
||||||
port: process.env.HTTP_PORT || process.env.PORT || 4242,
|
port: process.env.HTTP_PORT || process.env.PORT || 4242,
|
||||||
host: process.env.HTTP_HOST,
|
host: process.env.HTTP_HOST,
|
||||||
baseUriPath: process.env.BASE_URI_PATH || '',
|
baseUriPath: process.env.BASE_URI_PATH || '',
|
||||||
|
@ -49,7 +49,7 @@ async function start(opts) {
|
|||||||
const options = createOptions(opts);
|
const options = createOptions(opts);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
await migrator({ databaseUrl: options.databaseUrl });
|
await migrator(options);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
logger.error('Failed to migrate db', err);
|
logger.error('Failed to migrate db', err);
|
||||||
throw err;
|
throw err;
|
||||||
|
Loading…
Reference in New Issue
Block a user