Skip to content
This repository has been archived by the owner on Apr 3, 2023. It is now read-only.

Commit

Permalink
build: add db deps
Browse files Browse the repository at this point in the history
# Conflicts:
#	package-lock.json
#	package.json
  • Loading branch information
hi-rustin committed Sep 21, 2020
1 parent 98a0f51 commit a569ae8
Show file tree
Hide file tree
Showing 7 changed files with 356 additions and 43 deletions.
24 changes: 24 additions & 0 deletions ormconfig.js
@@ -0,0 +1,24 @@
module.exports = {
type: 'mysql',
host: process.env.BOT_DB_HOST,
port: process.env.BOT_DB_PORT,
username: 'root',
password: process.env.BOT_DB_PASSWORD,
database: process.env.BOT_DB_NAME,
timezone: 'Z',
// FIXME: this config can not working on cli migration.
entities: [
'lib/db/entities/**/*.js'
],
migrations: [
'lib/db/migrations/**/*.js'
],
subscribers: [
'lib/db/subscribers/**/*.js'
],
cli: {
entitiesDir: 'src/db/entities',
migrationsDir: 'src/db/migrations',
subscribersDir: 'src/db/subscribers'
}
}

0 comments on commit a569ae8

Please sign in to comment.