2021-04-05 05:43:59 -07:00
|
|
|
import * as path from 'path';
|
|
|
|
import { UserSettings } from 'n8n-core';
|
|
|
|
import { entities } from '../src/databases/entities';
|
2020-04-22 06:52:15 -07:00
|
|
|
|
|
|
|
module.exports = [
|
|
|
|
{
|
2020-04-27 03:46:09 -07:00
|
|
|
"name": "sqlite",
|
|
|
|
"type": "sqlite",
|
|
|
|
"logging": true,
|
2021-04-05 05:43:59 -07:00
|
|
|
"entities": Object.values(entities),
|
|
|
|
"database": path.join(UserSettings.getUserN8nFolderPath(), 'database.sqlite'),
|
2020-04-27 03:46:09 -07:00
|
|
|
"migrations": [
|
|
|
|
"./src/databases/sqlite/migrations/*.ts"
|
|
|
|
],
|
|
|
|
"subscribers": [
|
|
|
|
"./src/databases/sqlite/subscribers/*.ts"
|
|
|
|
],
|
|
|
|
"cli": {
|
2021-04-05 05:43:59 -07:00
|
|
|
"entitiesDir": "./src/databases/entities",
|
2020-04-27 03:46:09 -07:00
|
|
|
"migrationsDir": "./src/databases/sqlite/migrations",
|
|
|
|
"subscribersDir": "./src/databases/sqlite/subscribers"
|
|
|
|
}
|
|
|
|
},
|
2020-04-22 06:52:15 -07:00
|
|
|
{
|
2020-04-27 03:46:09 -07:00
|
|
|
"name": "postgres",
|
2020-04-22 06:52:15 -07:00
|
|
|
"type": "postgres",
|
|
|
|
"logging": false,
|
2020-04-27 03:46:09 -07:00
|
|
|
"host": "localhost",
|
|
|
|
"username": "postgres",
|
2020-07-17 08:08:40 -07:00
|
|
|
"password": "",
|
2020-04-27 03:46:09 -07:00
|
|
|
"port": 5432,
|
2020-07-17 08:08:40 -07:00
|
|
|
"database": "n8n",
|
2020-04-27 03:46:09 -07:00
|
|
|
"schema": "public",
|
2021-04-05 05:43:59 -07:00
|
|
|
"entities": Object.values(entities),
|
2020-04-22 06:52:15 -07:00
|
|
|
"migrations": [
|
2020-04-27 03:46:09 -07:00
|
|
|
"./src/databases/postgresdb/migrations/*.ts"
|
2020-04-22 06:52:15 -07:00
|
|
|
],
|
|
|
|
"subscribers": [
|
|
|
|
"src/subscriber/**/*.ts"
|
|
|
|
],
|
|
|
|
"cli": {
|
2021-04-05 05:43:59 -07:00
|
|
|
"entitiesDir": "./src/databases/entities",
|
2020-04-27 03:46:09 -07:00
|
|
|
"migrationsDir": "./src/databases/postgresdb/migrations",
|
|
|
|
"subscribersDir": "./src/databases/postgresdb/subscribers"
|
2020-04-22 06:52:15 -07:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2020-04-27 03:46:09 -07:00
|
|
|
"name": "mysql",
|
2020-04-22 06:52:15 -07:00
|
|
|
"type": "mysql",
|
2020-04-29 02:34:12 -07:00
|
|
|
"database": "n8n",
|
|
|
|
"username": "root",
|
|
|
|
"password": "password",
|
|
|
|
"host": "localhost",
|
2020-07-17 08:08:40 -07:00
|
|
|
"port": "3306",
|
2020-04-29 02:34:12 -07:00
|
|
|
"logging": false,
|
2021-04-05 05:43:59 -07:00
|
|
|
"entities": Object.values(entities),
|
2020-04-29 02:34:12 -07:00
|
|
|
"migrations": [
|
|
|
|
"./src/databases/mysqldb/migrations/*.ts"
|
|
|
|
],
|
|
|
|
"subscribers": [
|
|
|
|
"src/subscriber/**/*.ts"
|
|
|
|
],
|
|
|
|
"cli": {
|
2021-04-05 05:43:59 -07:00
|
|
|
"entitiesDir": "./src/databases/entities",
|
2020-04-29 02:34:12 -07:00
|
|
|
"migrationsDir": "./src/databases/mysqldb/migrations",
|
|
|
|
"subscribersDir": "./src/databases/mysqldb/Subscribers"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2020-05-04 02:18:28 -07:00
|
|
|
"name": "mariadb",
|
|
|
|
"type": "mariadb",
|
2020-04-29 02:34:12 -07:00
|
|
|
"database": "n8n",
|
|
|
|
"username": "root",
|
|
|
|
"password": "password",
|
|
|
|
"host": "localhost",
|
2020-07-17 08:08:40 -07:00
|
|
|
"port": "3306",
|
2020-04-22 06:52:15 -07:00
|
|
|
"logging": false,
|
2021-04-05 05:43:59 -07:00
|
|
|
"entities": Object.values(entities),
|
2020-04-22 06:52:15 -07:00
|
|
|
"migrations": [
|
2020-04-29 02:34:12 -07:00
|
|
|
"./src/databases/mysqldb/migrations/*.ts"
|
2020-04-22 06:52:15 -07:00
|
|
|
],
|
|
|
|
"subscribers": [
|
|
|
|
"src/subscriber/**/*.ts"
|
|
|
|
],
|
|
|
|
"cli": {
|
2021-04-05 05:43:59 -07:00
|
|
|
"entitiesDir": "./src/databases/entities",
|
2020-04-29 02:34:12 -07:00
|
|
|
"migrationsDir": "./src/databases/mysqldb/migrations",
|
2020-04-22 06:52:15 -07:00
|
|
|
"subscribersDir": "./src/databases/mysqldb/Subscribers"
|
|
|
|
}
|
|
|
|
},
|
2020-07-17 08:08:40 -07:00
|
|
|
];
|