Last active
March 14, 2022 19:26
-
-
Save GhettoBurger996/fc72299f6ed7f5358d012e33822350c4 to your computer and use it in GitHub Desktop.
ormconfig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Connection Configurations for TypeORM | |
* Used for creating, running and reverting Migrations | |
* And seeding data | |
*/ | |
module.exports = { | |
type: 'postgres', | |
host: 'localhost', | |
port: 5432, | |
username: 'postgres', | |
password: 'postgres123', | |
database: 'ecommerce', | |
migrationsRun: true, | |
synchronize: false, | |
logging: true, | |
logger: 'advanced-console', | |
migrationsTableName: 'migrations', | |
migrations: ['migrations/*.ts'], | |
cli: { | |
migrationsDir: 'migrations', | |
}, | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment