n8n/packages/cli/migrations/ormconfig.ts

108 lines
3.2 KiB
TypeScript
Raw Normal View History

2020-04-22 06:52:15 -07:00
import {MongoDb, SQLite, MySQLDb, PostgresDb} from './src/databases/index';
module.exports = [
{
2020-04-27 03:46:09 -07:00
"name": "sqlite",
"type": "sqlite",
"logging": true,
"entities": Object.values(SQLite),
"database": "./packages/cli/database.sqlite",
2020-04-27 03:46:09 -07:00
"migrations": [
"./src/databases/sqlite/migrations/*.ts"
],
"subscribers": [
"./src/databases/sqlite/subscribers/*.ts"
],
"cli": {
"entitiesDir": "./src/databases/sqlite",
"migrationsDir": "./src/databases/sqlite/migrations",
"subscribersDir": "./src/databases/sqlite/subscribers"
}
},
{
"name": "mongodb",
2020-04-22 06:52:15 -07:00
"type": "mongodb",
"logging": false,
"entities": Object.values(MongoDb),
"url": "mongodb://root:example@localhost:27017/n8n",
"authSource": 'admin',
2020-04-22 06:52:15 -07:00
"migrations": [
"./src/databases/mongodb/migrations/*.ts"
2020-04-22 06:52:15 -07:00
],
"subscribers": [
"src/subscriber/**/*.ts"
],
"cli": {
"entitiesDir": "./src/databases/mongodb",
"migrationsDir": "./src/databases/mongodb/Migrations",
"subscribersDir": "./src/databases/mongodb/Subscribers"
}
},
{
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",
"password": "docker",
"port": 5432,
"database": "postgres",
"schema": "public",
2020-04-22 06:52:15 -07:00
"entities": Object.values(PostgresDb),
"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": {
"entitiesDir": "./src/databases/postgresdb",
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",
"database": "n8n",
"username": "root",
"password": "password",
"host": "localhost",
"port": "3308",
"logging": false,
"entities": Object.values(MySQLDb),
"migrations": [
"./src/databases/mysqldb/migrations/*.ts"
],
"subscribers": [
"src/subscriber/**/*.ts"
],
"cli": {
"entitiesDir": "./src/databases/mysqldb",
"migrationsDir": "./src/databases/mysqldb/migrations",
"subscribersDir": "./src/databases/mysqldb/Subscribers"
}
},
{
"name": "mysql",
"type": "mysql",
"database": "n8n",
"username": "root",
"password": "password",
"host": "localhost",
"port": "3308",
2020-04-22 06:52:15 -07:00
"logging": false,
"entities": Object.values(MySQLDb),
"migrations": [
"./src/databases/mysqldb/migrations/*.ts"
2020-04-22 06:52:15 -07:00
],
"subscribers": [
"src/subscriber/**/*.ts"
],
"cli": {
"entitiesDir": "./src/databases/mysqldb",
"migrationsDir": "./src/databases/mysqldb/migrations",
2020-04-22 06:52:15 -07:00
"subscribersDir": "./src/databases/mysqldb/Subscribers"
}
},
];